How to replace a git repository?

前端 未结 1 525
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 00:34

I created a git repository and updated it with some stuff. Later I created a new directory for this project and initialized new git for it. Now I want to push changes and re

相关标签:
1条回答
  • 2020-12-30 00:43

    You just need to use a little force:

    git push --force origin master

    --force can also be abbreviated to -f.

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