Last active
August 22, 2017 21:18
-
-
Save textarcana/d8053734d6bcd7ebc6af90cbae3a1014 to your computer and use it in GitHub Desktop.
A quick way to commit all modifed files that are tracked in git. I made this because I like to do many incremental commits across several files (because usually I am updating global interfaces and writing documentation as I go)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in your ~/.profile | |
make_default_commit () { | |
git commit -am "$*" | |
} | |
alias h="make_default_commit " | |
# then you can use it like this | |
# | |
# h I changed some stuff. | |
# | |
# and you will have committed all | |
# changed files with the commit message | |
# "I changed some stuff." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment