📜  强制 git pull overwrite - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:08.757000             🧑  作者: Mango

代码示例4
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main