git可以使用
git status
来查看那些文件没有提交 commit,但是如何查看哪些文件没有提交push到远程?
大家讲道理2017-04-25 09:06:05
It is recommended that you use Source Tree to have a clear view of the entire distributed process of Git, and at the same time, it can also solve the questioner's requirements in this question.
The agile development tools produced by Atlassian are extremely easy to use, and Source Tree is one of its masterpieces.
習慣沉默2017-04-25 09:06:05
As long as you submit the commit, when you push, it will naturally be pushed to the remote.
The only thing to distinguish is whether it has been pushed or not
迷茫2017-04-25 09:06:05
Isn’t it in git status:
> git status
On branch refactor
Your branch is ahead of 'origin/refactor' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
世界只因有你2017-04-25 09:06:05
"Which files have not been submitted to the remote push" - git status explains which files have not been submitted. To see which commits do not exist on the remote, you can try this command to see which commits are on which branches (but not on other branches):
git show-branch -a --color=always