- 拉取远程所有分支
git clone --mirror https://github.com/ligaopeng123/react-project-template.git
- core.bare配
cd react-project-template.git
git config --bool core.bare false
- 换remote_url
git remote set-url origin 新地址
- 推送所有分支
git push --mirror origin
git clone --mirror https://github.com/ligaopeng123/react-project-template.git
cd react-project-template.git
git config --bool core.bare false
git remote set-url origin 新地址
git push --mirror origin