Quickly ship your changes to git? Use 'ship'

karsens

Karsens

Posted on December 29, 2021

Quickly ship your changes to git? Use 'ship'

Ship is a small cli command I wrote that automatically adds and commits all your changes and pushes them to your current branch. It then lets you know if it succeeded or failed.

To add ship to your cli, copy and paste this into your terminal:

echo "ship () { BRANCH=$(git branch --show-current); git add . && git commit -m \"${1:-Improvements}\" && git push -u origin \"$BRANCH\" && say you shipped it || say something went wrong }" >> ~/.zshrc && source ~

Go ahead and try it! Hope you like it ;)

P.S. only tested on MacOS.

đź’– đź’Ş đź™… đźš©
karsens
Karsens

Posted on December 29, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related