compare 2 git branches in the file code example Example: diff specific file git different branches git diff mybranch master -- myfile.cs