Git仓库迁移指南

xiaozhch5

Git仓库完全迁移,包括所有的分支和标签

git clone --mirror <URL to my OLD repo location>
cd <New directory where your OLD repo was cloned>
git remote set-url origin <URL to my NEW repo location>
git push -f origin

Comments

Add comment
  • Comment list is empty