How do I call git diff on the same file between 2 different local branches?

Use the git diff branch branch filename syntax:

git diff branchA branchB -- file.cs

put the two names of your branches and optionally use the -- filename option to specify one file! Good luck, let me know if you have issues.

Leave a Comment

tech