版本控制 - git 如何知道有没有提交到远程?那些文件没有提交到远程?
怪我咯
怪我咯 2017-04-25 09:04:05
0
5
651

git可以使用

git status

来查看那些文件没有提交 commit,但是如何查看哪些文件没有提交push到远程?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(5)
大家讲道理

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.

習慣沉默

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

迷茫

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
世界只因有你

"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
Peter_Zhu

git status View current file status

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!