84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
在gitlab上面创建了两个分支,其中一个名字叫release/sprint12
然后运行git fetch的时候报错了,参照stackoverflow上面的答案删除本地文件夹.git/refs/remotes/origin/release后重新运行git fetch还是报同样的错,报错如下:
.git/refs/remotes/origin/release
另外,我到.git/refs/remotes/origin/release文件夹下面去查看了,是空的,并没有sprint12文件夹。
这个问题有人遇到过吗?
I know what happened
1. Rungit remote show originand all information will be displayed, includingbranches that are deleted remotely but retainedlocally.
git remote show origin
2. Runninggit remote prune origin即可删除本地分支release
git remote prune origin
release
3.Rungit fetch获取新分支release/sprint12
git fetch
release/sprint12
I know what happened
1. Run
git remote show origin
and all information will be displayed, includingbranches that are deleted remotely but retainedlocally.2. Running
git remote prune origin
即可删除本地分支release
3.Run
git fetch
获取新分支release/sprint12