Skip to content

Instantly share code, notes, and snippets.

@atcl
Created July 30, 2012 21:22
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 atcl/3210388 to your computer and use it in GitHub Desktop.
Save atcl/3210388 to your computer and use it in GitHub Desktop.
commit with git like svn
#/bin/bash
if git diff-index --quiet HEAD --; then
echo 'nothing to commmit'
else
git commit -a -m"$1"
git push
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment