I am having an error in SourceTree that says, "Error Encountered: 'git tag' failed with code 128: fatal: unterminated line in .git/packed-refs" If anyone has seen this error and knows a solution I would be grateful.
if did't see .git/packed-refs
folder from flutter just delete flutter SDK and extract new SDK same folder
Just delete the file .git/packed-refs
.
Then "refresh" your repo with a pull
or fetch
.
I had the same error
fatal: unterminated line in .git/packed-refs: ...
(And that file was just lines of:
0000 0000 0000 0000 0000 0000 0000 0000
)In my case deleting the file worked and I was able to use my repo again.
Failing the above, I would try something like mentioned in this answer. The steps are:
remote add origin
)fetch
)reset
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With