10 October, 2013

useful git diff commands for developers


1) git diff with only file name and its status

git diff --name-status<commit_id> 

2) Showing differences introduced by a commit

git show <commit_id> 

3) Showing differences introduced by a commit with file name only, status of each file with commit message
git show --name-status <commit_id> 

4) Showing differences introduced by a commit with file name only, status of each file
git diff-tree  --name-status -r  <commit_id> 


No comments:

Post a Comment