Skip to content

Instantly share code, notes, and snippets.

@isaaclw
Last active November 22, 2019 16:06
Show Gist options
  • Save isaaclw/3b468a1226582172f286aba1f71f60bf to your computer and use it in GitHub Desktop.
Save isaaclw/3b468a1226582172f286aba1f71f60bf to your computer and use it in GitHub Desktop.
Use vimdiff to show the differences before and after a git hash #vim #git
HASH=
FILE=
vimdiff <(git show $HASH~:$FILE) <(git show $HASH:$FILE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment