Skip to content

Instantly share code, notes, and snippets.

@benwoodward
Last active December 11, 2015 03:48
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 benwoodward/4539890 to your computer and use it in GitHub Desktop.
Save benwoodward/4539890 to your computer and use it in GitHub Desktop.
Useful Git snippets

Edit historical commit

git-checkout 0f0d8a27622e7bf7f008983c4b8ee23bfb9843ab
editor path/to/file
git-add path/to/file
git-commit --amend -v
git-rebase --onto HEAD 0f0d8a27622e7bf7f008983c4b8ee23bfb9843ab master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment