每次我执行git fetch / pull时,我都会获得并更新已下载的新分支。我确信在过渡期间,分支机构不会在服务器端进行更新。
导致这种情况的原因是什么?
服务器是gitlab实例
见下文:(为了简洁和隐私而策划)
> git pull
From <remote_server>
* [new branch] branch_name -> origin/branch_name
Already up-to-date.
> git pull
From <remote_server>
* [new branch] branch_name -> origin/branch_name
Already up-to-date.
> git fetch
From <remote_server>
* [new branch] branch_name -> origin/branch_name
> git br -rd origin/branch_name
Deleted remote-tracking branch origin/branch_name (was 2cce655).
> git fetch
From <remote_server>
* [new branch] branch_name -> origin/branch_name
> git fetch
From <remote_server>
* [new branch] branch_name -> origin/branch_name
> git --version
git version 2.10.0.windows.1
> git pull origin branch_name
From <remote_server>
* branch remote_branch -> FETCH_HEAD
* [new branch] remote_branch -> origin/remote_branch
Merge made by the 'recursive' strategy.
> git pull origin branch_name
From <remote_server>
* branch remote_branch -> FETCH_HEAD
* [new branch] remote_branch -> origin/remote_branch
Already up-to-date.
> git pull origin branch_name
From <remote_server>
* branch remote_branch -> FETCH_HEAD
* [new branch] remote_branch -> origin/remote_branch
Already up-to-date.