开发者

How do I determine which changes in one branch are missing from another?

开发者 https://www.devze.com 2022-12-21 15:22 出处:网络
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 t

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?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号