This below command will show changes made during last 3 commits for specific file defined |
git diff HEAD~3..HEAD -- project/location/file.name |
This command will list files changes made during last 3 commits |
git diff --name-status HEAD~3..HEAD |
This command will list files changes made during last 3 commits with changes |
git diff HEAD~3..HEAD |
Below command will show history of commits: |
git log -3 git log -2 |
Below command will show difference between two commits: |
git diff old_commit new_commit git diff 5300b....4ea31a 754e8d....c33 git diff --name-status 5300b....4ea31a 754e8d....c33 |
Saturday, December 2, 2017
GIT | View Changed Details For Files By Commits | View List Of Files Changed During Different Commits
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment