公司從gogs遷移到gitlab需要遷移代碼
git clone <a.git>
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
git remote rename origin old-origin
git remote add origin http://git.cn-healthcare.com:90/liyufeng/jiankangjie.git
git push -u origin --all
git push -u origin --tags