Git hangs while writing objects

后端 未结 9 2022
执念已碎
执念已碎 2020-12-12 13:21

I\'m trying to git push -u origin master And it just hangs at

Writing objects:  99% (219/220), 12.65 MiB | 97 KiB/s

The

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 13:47

    I had the same problem with (writing objects %16) stuck then fatal. I solved this by saving the current changes and clone a new repository, then copy the modified files into it.

    Eg. Assume current repository is A, then all you need to do is:

    1. mv A B
    2. git clone A
    3. mv B/* A/
    4. rm -rf B

    Then commit and push and it all worked fine. It recognized the moved files as modified :)

提交回复
热议问题