Question

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.

Was it helpful?

Solution

You can see that using 'git log' :

git log master..experimental

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

OTHER TIPS

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.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top