-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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/master' #6121
Comments
Hi @arbuzzer, thanks for the report and sorry you're having issues. We ask that folks fill out the template so we can better understand your setup and what's going on so we make the best use of the maintainers' time. Here's the template you need: https://github.com/desktop/desktop/issues/new?template=bug_report.md Thanks for understanding and meeting us halfway! 😄 |
@arbuzzer It looks like there may be some underlying repository corruption that is causing this issue. Could you go to the file menu in GitHub Desktop and select |
|
Descriptionerror: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference VersionSteps to Reproduce
Expected(Blue Box) and Actual(Red Box) BehaviorAdditional InformationLogs2018-11-07.desktop.production.log |
Thanks for sharing that information @arbuzzer. A few other questions:
It would also be helpful if you could run the following two commands within the repository directory to provide more configuration information about your local repository:
Please let me know the output of both of those commands |
|
I did all the actions described on the forums again and that's what I did. Expected(Blue Box) and Actual(Red Box) Behavior. |
Thanks @arbuzzer. Try running the command |
|
Maybe it will help me to reinstall the system, or is it easier for me to create a new account? It is just important for me to use this application. |
@arbuzzer apologies -- I think we need to clean things up before running that command. Try these steps:
Let me know if that doesn't get things working. |
|
@arbuzzer sorry about that -- you will need to run
If you would like you can also perform a fresh clone of the repository to GitHub Desktop -- a fresh clone will not have the issues you are encountering. |
Repository fixes aside, I think #6141 here should prevent us from ending up in this situation again |
|
Sorry for the delay in getting back to you @arbuzzer. I'm not sure why the |
Closing this out due to inactivity. @arbuzzer if you're able to answer @steveward's question in the previous comment we're happy to revisit it. |
nice!this solved my problem |
This worked for me : |
git remote prune origin |
Try
cleaning-up your local repository with: |
After searching constantly, this is the solution that worked for me which entails unsetting/removing the Upstream
|
It worked like a charm! Thanks |
rm .git/refs/remotes/origin/master --> This worked for me magically. |
git fetch --all /* This one works for me */ |
@richierich25 worked for me too |
I had a similar issue running VSCode on Windows 10 and trying to commit changes or push. However what solved it for me was changing my controlled folder access in Windows settings which was preventing git from creating the .lock files locally. |
This worked for me. Thanks! |
None of the previous methods worked for me, so what I did was make a copy of the folder, delete the folder, go to GitHub Desktop, clone the repository, paste the files that I had modified that I couldn't upload and that's it. |
thank you |
|
I have some problem with my GitHub. I read similar questions and answers to them in many forums, but unfortunately nothing helped.
error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference
'refs/remotes/origin/master': reference broken
From https://github.com/arbuzzer/arbuzzer.github.io
! [new branch] master -> origin/master (unable to update local ref)
The text was updated successfully, but these errors were encountered: