search

Home  >  Q&A  >  body text

版本控制 - git 如何知道有没有提交到远程?那些文件没有提交到远程?

git可以使用

git status

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

怪我咯怪我咯2859 days ago729

reply all(5)I'll reply

  • 大家讲道理

    大家讲道理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.

    reply
    0
  • 習慣沉默

    習慣沉默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

    reply
    0
  • 迷茫

    迷茫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
    

    reply
    0
  • 世界只因有你

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-25 09:06:05

    git status View current file status

    reply
    0
  • Cancelreply