Question

I'm using git. I have a branch, apifixes, that was branched from master some time ago. Most, but not all, of the changes from the apifixes branch have been merged back into master. At least, I believe this is the case, because when I try to do

git branch -d apifixes

I get the following error:

error: The branch 'apifixes' is not an ancestor of your current HEAD.

How can I tell which changes are in apifixes but not in master?

Was it helpful?

Solution

git log master..apifixes

show commits reachable from apifixes, but not from master

if you want to show the difference between the two, use git diff instead

OTHER TIPS

git log --oneline --left-right --cherry-pick master...apifixes (note the three dots ...) might be what you want.

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