How can I check whether two branches are “even”?
问题 The GitHub web interface has a nice feature telling me whether a branch is even with the master branch. Is there a command-line equivalent of this feature? I work with multiple repositories and I'm looking for a quick way to see whether branches are even or require attention. Here are screenshot of the GitHub web interface, for those wondering about this feature: 回答1: To compare the files of a branch called branch located on GitHub against master on the same repository, you can use git diff :