wanglianhai11 2015-07-15 06:47 采纳率: 0%
浏览 2281

git status使用的一些疑问

我在github上建立了一个远程仓库,然后与一个本地仓库关联推送后,使用git status后
返回如下信息:
On branch master
Your branch is up-to-date with 'origin/mas

nothing to commit, working directory clean
而在另外一台电脑上克隆这个远程库后,git status会返回如下信息
#On branch master
nothing to commit, working directory clean

为什么会不同?请大神指导啊

  • 写回答

1条回答 默认 最新

  • oyljerry 2015-07-15 06:49
    关注

    Your branch is up-to-date with 'origin/mas
    这个表示跟远程仓库做了比较等。
    你可以先git fetch等跟远程同步sync一下,然后再git status。就会显示了

    评论

报告相同问题?