Skip to content

Instantly share code, notes, and snippets.

@c9s
Last active August 29, 2015 14:02
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 c9s/421674465eab139e56cd to your computer and use it in GitHub Desktop.
Save c9s/421674465eab139e56cd to your computer and use it in GitHub Desktop.
ci () {
git status -uno
if [[ -n "$*" ]]
then
echo "Committing..."
git commit -v -a -m "$*"
else
echo "**** Please Enter Commit Message ****"
cat > .commit-msg
if [[ -e '.commit-msg' ]]
git commit -a --file .commit-msg && rm -v .commit-msg
then
fi
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment