git本地仓库关联多个远程仓库

版权声明:欢迎转载,但是请附上原文链接! https://blog.csdn.net/zixiao217/article/details/82939654

直接贴代码:

Administrator@WIN-VDB8K51IQ2Q MINGW32 ~/IdeaProjects/myBoot (master)
$ git remote add  originlocal http://localhost:3000/zixiao217/springDataJPA.git

Administrator@WIN-VDB8K51IQ2Q MINGW32 ~/IdeaProjects/myBoot (master)
$ git remote -vv
origin  https://github.com/Byron4j/myBoot.git (fetch)
origin  https://github.com/Byron4j/myBoot.git (push)
originlocal     http://localhost:3000/zixiao217/springDataJPA.git (fetch)
originlocal     http://localhost:3000/zixiao217/springDataJPA.git (push)

Administrator@WIN-VDB8K51IQ2Q MINGW32 ~/IdeaProjects/myBoot (master)
$ git push originlocal
Counting objects: 179, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (101/101), done.
Writing objects: 100% (179/179), 76.58 KiB | 0 bytes/s, done.
Total 179 (delta 49), reused 101 (delta 25)
Username for 'http://localhost:3000': zixiao217
To http://localhost:3000/zixiao217/springDataJPA.git
 * [new branch]      master -> master

猜你喜欢

转载自blog.csdn.net/zixiao217/article/details/82939654