为了保留历史提交记录或远程所有分支信息等,最好使用 git clone —bare old @git -> cd you@git -> git push —mirror new@git; 若你本地有stash数据可以使用 git remote set-url origin new@git,迁移前把所有的branch都检出后再push.
为了保留历史提交记录或远程所有分支信息等,最好使用 git clone —bare old @git -> cd you@git -> git push —mirror new@git; 若你本地有stash数据可以使用 git remote set-url origin new@git,迁移前把所有的branch都检出后再push.
本文标题:Git项目迁移
本文链接:https://www.haomeiwen.com/subject/ixlarxtx.html
网友评论