git diff between two different files -


in head (the latest commit), have file named foo. in current working tree, renamed bar, , edited it.

i want git diff foo in head, , bar in current working tree.

check out --find-renames option on git-diff @ https://www.kernel.org/pub/software/scm/git/docs/git-diff.html

or specify paths explicitly:

git diff head:full/path/to/foo full/path/to/bar

(credit goes twaggs git: how diff 2 different files in different branches?)


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -