If you are comparing different branches, you need to use --
to separate the git version from the file system path. For example, with two local branches, master
and bryan-working
:
$ git diff master -- AFolderOfCode/ bryan-working -- AFolderOfCode/
Or from the local branch to the remote:
$ git diff master -- AFolderOfCode/ origin/master -- AFolderOfCode/
bcattle Jun 22 '15 at 2:09 2015-06-22 02:09
source share