本文介绍了我怎样才能检查哪些提交没有被推送到原点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经向我的本地分支提交了提交(让我们只说主),然后让其他人做出改变。当我运行'git status'时,我看到如下内容:
#你的分支在'origin / master'之前4提交。
如何查看我所提交的四个提交列表尚未推送到
code>会显示已更改的档案。
git log origin / master..master
会显示提交。
I have made commits to my local branch (let's just say master) and have 'git pull'd down changes that others have made. When I run a 'git status', I see something like:
# Your branch is ahead of 'origin/master' by 4 commits.
How can I see a list of the four commits that I have made that have yet to be pushed to origin?
解决方案
git diff --stat origin/master
will show the changed files.
git log origin/master..master
will show the commits.
这篇关于我怎样才能检查哪些提交没有被推送到原点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!