M
M
malayamarisha2020-10-30 06:14:39
git
malayamarisha, 2020-10-30 06:14:39

How to fix "cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken" error?

Good day!
Git connected to the project.
During the file push, the light was turned off. After turning on the light, when trying to commit and push changes, the error "TODO check has skipped one file. No new or edited TODO items, or items located in changed text fragments were found."

If you ignore this message, then when you try to push, an error occurs "Commit failed with error 0 file committed, 1 file failed to commit: 1 cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken
" 'refs/heads/master' with the following content:

0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 00

Tell me how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2020-10-30
@alexey-m-ukolov

Are you using a Jetbrains product to commit?
This is not an error, just an informational message. You can ignore it, or you can uncheck the checkbox in the commit window Check TODOand it will not appear at all.

M
MIK Ek, 2021-03-02
@MIKEk8

git gc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question