Skip to content

Instantly share code, notes, and snippets.

@fujii
Created September 10, 2015 10:08
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 fujii/1f67799a903bf05d54ef to your computer and use it in GitHub Desktop.
Save fujii/1f67799a903bf05d54ef to your computer and use it in GitHub Desktop.
#! /bin/sh
git reset -q 'HEAD^' -- "$@"
git commit --amend --no-edit --allow-empty
git reset -q 'HEAD@{1}' -- "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment