Skip to content

Instantly share code, notes, and snippets.

@textarcana
Last active August 22, 2017 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save textarcana/d8053734d6bcd7ebc6af90cbae3a1014 to your computer and use it in GitHub Desktop.
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)
# 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