git to replace the warehouse, those branches, retention and development rights records submitted

Others recommended method is very complicated, this step personally tried, very easy to use.

1, a bare repository clone from the original address, for example, was originally hosted on GitHub.

git clone --bare https: // github .... (original warehouse address)

 

2, directory entry clone down

cd project.git (project is the name of your project)

 

3, to mirror the push upload code to the new address of the warehouse.

git push --mirror http: // ... (Target Warehouse address)

Guess you like

Origin www.cnblogs.com/sichaoyun/p/12060822.html