git clone --bare <old_repo> cd <old_repo> git push --porcelain --mirror <new_repo>
I've done some migrations recently with the commands above. Justin Mclean <jus...@classsoftware.com> 于2019年12月18日周三 下午2:05写道: > HI, > > I think this can be done as simple as using these two commands, but I’ve > not tried it before. > git clone —mirror oldrepo > git push —mirror newreeo > > Here’s a slightly longer set of command which does the same. [1] > > Worse case we can wipe the repo and ask again and/or ask Infra to franker > it for us. > > Thanks, > Justin > > 1. https://www.atlassian.com/git/tutorials/git-move-repository > >