Skip to content

Instantly share code, notes, and snippets.

Last active December 21, 2015 00:08
What would you like to do?
Compare Git Branches, Compare Two Files in Different Branches
# diff two branches
$ git diff --name-status branch1..branch2
# diff of a specific file between two commits/branchs
$ git diff feature-branch master -- myfile.css
$ git diff eaa241d 4d49814 -- myfile.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment