转移git仓库

来源:互联网 发布:手机淘宝怎么找店小二 编辑:程序博客网 时间:2024/04/29 19:04

原来的仓库地址如https://git.hiweeds.net/test.git
新的仓库地址为 https://git.hiweeds.net/real.git

git clone https://git.hiweeds.net/test.gitcd testgit remote set-url https://git.hiweeds.net/real.gitgit push --all or#Just push each branch to remote repo, actuall I just use this.git push origin master:mastergit push origin develop:develop

参考:
Git工程迁移方法总结(命令行)

0 0
原创粉丝点击