我在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
为什么会不同?请大神指导啊
Your branch is up-to-date with 'origin/mas
这个表示跟远程仓库做了比较等。
你可以先git fetch等跟远程同步sync一下,然后再git status。就会显示了