After the git fetch command is executed, error: cannot lock ref is output.
phpcn_u1582
phpcn_u1582 2017-05-02 09:42:35
0
1
882

Two branches were created on gitlab, one of which is named release/sprint12

Then an error was reported when running git fetch. Delete the local folder according to the answer on stackoverflow .git/refs/remotes/origin/release
and then run git fetch again and the same error was reported. The error was as follows:


In addition, I checked under the .git/refs/remotes/origin/release folder. It was empty and there was no sprint12 folder.

Has anyone encountered this problem?

phpcn_u1582
phpcn_u1582

reply all(1)
漂亮男人

I know what happened

1. Run git remote show origin and all information will be displayed, including branches that are deleted remotely but retained locally.


2. Running git remote prune origin 即可删除本地分支release

3.Rungit fetch获取新分支release/sprint12

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template