Sometimes I have the following problem:
Add some commits in a feature branch.
Update master from upstream.
Want to see the diff between the feature branch and master, but git diff master
shows all of the things that have been added/removed in master, when I really only want to see the commits that the feature branch is ahead of master, not the ones that it's behind.
Is there a way to do this without having to merge master into the feature branch?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…