1. 程式人生 > >git本地倉庫關聯多個遠端倉庫

git本地倉庫關聯多個遠端倉庫

直接貼程式碼:

[email protected] MINGW32 ~/IdeaProjects/myBoot (master)
$ git remote add  originlocal http://localhost:3000/zixiao217/springDataJPA.git

[email protected] 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) [email protected] 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