git status没有显示远程后面的本地repo

时间:2014-12-31 21:31:06

标签: git gitlab

我的远程存储库位于专用网络上,我必须使用VPN才能访问它。 如果我没有连接到VPN ....

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

如果我再连接到VPN ...

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

问题是我知道远程仓库中有变化。 如果我那么......

$ git pull
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
From gitlab.corp.local:jschank/capitol-connect-dev
   f3d1e85..2f3ee1b  master     -> origin/master
Updating f3d1e85..2f3ee1b
Fast-forward
 Vagrantfile                            |  7 ++++++-
 provisioning/puppet/capitol-connect.pp |  4 ++--
 provisioning/shell/setup-symlinks.sh   | 19 +------------------
 3 files changed, 9 insertions(+), 21 deletions(-)

为什么git status没有报告我的本地仓库在我的遥控器后面?我在这里错过了什么? 它有点使得git状态完全不可靠。

$ git --version
git version 2.2.1

0 个答案:

没有答案