git重置成新仓库 git reset to new repository
git重置成新仓库 git reset to new repository
- git checkout –orphan latest_branch
- git add -A
- git commit -am “commit message”
- git branch -D master
- git branch -m master
- git push -f origin master
one line:
git checkout –orphan latest_branch && git add -A && git commit -am “commit message” && git branch -D master && git branch -m master && git push -f origin master
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 👋Blog!
评论