-2
  • what is the simplest way to see a specific file diff from my branch to master?
  • everything on my branch is pushed
  • I prefer to use branch names rather than commits' hashes (like here)
  • I want a single file diff rather than a full blown diff of branches (like here)
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87

1 Answers1

0

Here is what worked for me:

$ git diff origin/master:path/to/myfile.py path/to/myfile.py

Note that order does matter (master branch should come first)

OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87