Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Add, commit and push function.
* Commit And Push - CAP.
* Cap function to add, commit and push.
* Drop this in ~/.bash_profile
* Usage - cap 'commit message'
* - Andrew Hathaway
cap() {
git add . ; /* Add all changes */
git commit -m "$1"; /* Commit the changes with the message */
git pull; git push; /* Pull first, then push */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.