git compare file on one branch with same file on dev code example Example: diff specific file git different branches git diff mybranch master -- myfile.cs