Skip to content

Instantly share code, notes, and snippets.

@natanshalva
Last active December 16, 2015 18:40
Show Gist options
  • Save natanshalva/5479854 to your computer and use it in GitHub Desktop.
Save natanshalva/5479854 to your computer and use it in GitHub Desktop.
Git commit script
#!/bin/sh
# Add hot key to git commit
# Insert alias in your .bashrc or in .bash_aliases
# Example: alias bc="/path/to/this/file"
#
echo "Git Add"
eval "git add -a"
echo "insert your message"
read VAR
eval "git commit -am'$VAR'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment