How to diff files from different branches in git

git diff

Once I needed to view the differences between the same file in different branches in git. This can be done by using following command:

git difftool somebranch:README otherbranch:README

Comments

comments powered by Disqus