Skip to content

@andrewhathaway /.bash_profile
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.