Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot lock ref 'refs/remotes/origin/dev #11

Open
zhongs opened this issue Mar 13, 2020 · 0 comments
Open

error: cannot lock ref 'refs/remotes/origin/dev #11

zhongs opened this issue Mar 13, 2020 · 0 comments
Labels

Comments

@zhongs
Copy link
Owner

zhongs commented Mar 13, 2020

执行 git pull origin dev 拉取远程分支代码报错

error: cannot lock ref 'refs/remotes/origin/dev': ref refs/remotes/origin/dev is at d48fd3cd887a257038de7bbf71da18a89cc31bdb but expected ebeea068f474a4c65ed5018635fc8a25be7e8fd7   
 ! ebeea06..d48fd3c  dev        -> origin/dev  (unable to update local ref)

解决方法:

rm .git/refs/remotes/origin/dev
@zhongs zhongs added the git label Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant