Git repository migration command

1. clone bare from the original local git

git clone --bare https://***.git

 

2. push mirror to the destination warehouse

git push --mirror https://***.git

 

Guess you like

Origin www.cnblogs.com/zhongzf/p/11699646.html