Skip to content

Instantly share code, notes, and snippets.

@masak
Created April 20, 2014 10: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 masak/11110614 to your computer and use it in GitHub Desktop.
Save masak/11110614 to your computer and use it in GitHub Desktop.
git-commit-branch
BRANCH="$1"
shift
git checkout $BRANCH
git commit "$*"
git checkout -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment