Git Tag failed with code 128: fatal: unterminated line in .git/packed-refs

后端 未结 3 1470

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 e

相关标签:
3条回答
  • 2021-01-05 00:29

    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:

    • move old git directory
    • initialise new repo
    • link to old repo (by remote add origin)
    • get old history (fetch)
    • force update to old history (by doing a reset)
    0 讨论(0)
  • 2021-01-05 00:29

    if did't see .git/packed-refs folder from flutter just delete flutter SDK and extract new SDK same folder

    0 讨论(0)
  • 2021-01-05 00:32

    Just delete the file .git / packed-refs. from the flutter folder

    Download the sdk again from https://flutter.dev/docs/get-started/install/windows and copy the folder to the flutter location, in this way files were mixed and everything worked correctly.

    0 讨论(0)
提交回复
热议问题