Tuesday 24 February 2015

Git - Difference (Compare) between two commits (sha)



Given two different SHAs (Commit Ids), you might want to view the difference between them and compare.

You can do this by

git difftool

The above will launch the difftool for each file in sha1 and sha2.

If you want to view only the file names,

git diff --name-only

Reference: StackOverflow


No comments:

Post a Comment

Gallery

Object Oritented, Git

Most Commented

OOAD

Contact Form

Name

Email *

Message *

2014 © Planer - Responsive Blogger Magazine Theme
Planer theme by Way2themes