Help with error in git $ git fsck Checking object directories: 100% (256/256), done. error: HEAD: invalid sha1

1

In my git practice, it turns out that this appeared to me in git:

$ git fsck
Checking object directories: 100% (256/256), done.
error: HEAD: invalid sha1 pointer 1a410efbd13591db07496601ebc7a059dd55cfe9
error: refs/heads/master: invalid sha1 pointer 1a410efbd13591db07496601ebc7a059dd55cfe9
error: refs/heads/masterecho: invalid sha1 pointer 0000000000000000000000000000000000000000
dangling blob 5cd9f67660ab7e2cd687598a3346e186ff28f634

Any ideas or solutions for this problem?

    
asked by Lourdes Castillo 12.04.2017 в 20:16
source

2 answers

0

In any case, this is the first time I start to see git, thank you very much for your ideas and / or suggestions. Sorry for my mess in responding or creating the topic. Thank you!

    
answered by 12.04.2017 / 20:31
source
1

My error was: fatal: bad object HEAD and the solution I found at the time was to apply the command: git fetch origin git reset --hard origin/master

Any better idea or suggestion to this practice?

    
answered by 12.04.2017 в 20:44