简体   繁体   中英

How can I pull from master branch with git?

I try to pull from my master branch, but I get the error message:

$ git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 

error: cannot lock ref 'refs/remotes/origin/navigation': is at 1234566753 but expected 5434623423 From https://bitbucket.org/myproject  ! 12345..8f1b648  navigation -> origin/navigation  (unable to update local ref) Completed with errors, see above

What can I do?

Try to run:

 git gc --prune=now

and delete .git/refs/remote/origin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM