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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -