Skip to content

Instantly share code, notes, and snippets.

@mohnish
Created April 7, 2015 06:09
Show Gist options
  • Select an option

  • Save mohnish/e5a19b47ffae27ace45f to your computer and use it in GitHub Desktop.

Select an option

Save mohnish/e5a19b47ffae27ace45f to your computer and use it in GitHub Desktop.
diff a file from a different branch
git diff <branch_name> -- /path/to/file/in/repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment