Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. 1. Get changes made for a file between commits
  2. `git diff <commit1 hash> <commit2 hash> -- <file path>`
  3. Note: This failed unless I ran the command from project root dir and file path was relative to root
  4. 2. Get list of files changed between commits
  5. git diff --name-only <commit hash1> <commit hash2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement