質問

I have two branches - master and experimental. How can I see which commits are in experimental and not in master? It would be nice to see this in gitk, but in the terminal is also ok.

役に立ちましたか?

解決

You can see that using 'git log' :

git log master..experimental

That will show you which commits are in experimental but not in master.

他のヒント

The syntax for selecting revisions is documented in man gitrevisions. In commands that deal with an entire set of revisions, just naming one means "everything reachable from" that one, and appending a caret ^ to the front means "but not anything reachable from this one", and A..B is an alternate spelling of ^A B.

(edit: oh, boy, I had the A..B exactly backwards.)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top