How to restore Git after fatal file system error?

前端 未结 3 673
眼角桃花
眼角桃花 2021-01-14 18:31

What is the fastest path to restore a git repository after a file system error on the main server?

Imagine the central server of your OSS project fails and all commi

3条回答
  •  既然无缘
    2021-01-14 18:34

    A git pull and then a git push should be enough.

    Alternately a git push -f will forcibly update the server with your local copy, but this can cause problems for others (if there are multiple committers).

    Let us know if you run into any further problems or errors.

提交回复
热议问题