DEV Community

Karsens
Karsens

Posted on

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.

Top comments (1)

Collapse
 
terryruffin profile image
TerryRuffin

At GitHub, we improve existing features and work on new ones all the time, so we use feature flags to ship faster and to lower the risk of. love marriage ka taweez