Advertisement
Guest User

Untitled

a guest
May 6th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. git branch tmp <first-commit-for-diff>
  2. git checkout tmp
  3.  
  4. git cherry-pick <second-commit-for-diff>
  5. git cherry-pick <third-commit-for-diff>
  6. # And so on
  7.  
  8. git diff tmp <first-commit-for-diff>^ # The trailing ^ tells git to use the parent
  9.  
  10. git diff commit1^..commit2 -- [<path>...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement