Mother of the contents of a bunch of git repository migration, one is too much trouble, and under the local code, but also delete the library address, and then switch to the address of the new library of uploads.
Such operations are generally only the master branch, but also other branches one by one, and later found a article on 51CTO, simple and clear, what it all buttoned up.
Including all branches, tags, log a lot.
Of course, corresponding to the account of things no other way.
Four lines of command:
git clone --mirror <URL to my OLD repo location>
cd
<New directory where your OLD repo was cloned>
git remote
set
-url origin <URL to my NEW repo location>
git push -f origin