git remote add for feiba

將現有代碼倉庫分支推送到其他倉庫上去。


lwk@qwfys:~/Public/project/qwfys$ git clone [email protected]:ab-sample/eapp-isv-project-fe.git
Cloning into 'eapp-isv-project-fe'...
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 12 (delta 0), reused 12 (delta 0), pack-reused 0
Receiving objects: 100% (12/12), done.
lwk@qwfys:~/Public/project/qwfys$ ll
total 52
drwxr-xr-x 13 lwk lwk 4096 Jan  7 21:24 ./
drwxr-xr-x  6 lwk lwk 4096 Dec 31 11:21 ../
drwxrwxr-x  7 lwk lwk 4096 Jan  7 21:22 eapp-isv-project/
drwxr-xr-x  4 lwk lwk 4096 Jan  7 21:24 eapp-isv-project-fe/
lwk@qwfys:~/Public/project/qwfys$ cd eapp-isv-project-fe/
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ ll
total 32
drwxr-xr-x  4 lwk lwk 4096 Jan  7 21:24 ./
drwxr-xr-x 13 lwk lwk 4096 Jan  7 21:24 ../
-rwxr-xr-x  1 lwk lwk 1480 Jan  7 21:24 app.acss*
-rwxr-xr-x  1 lwk lwk  418 Jan  7 21:24 app.js*
-rwxr-xr-x  1 lwk lwk  401 Jan  7 21:24 app.json*
drwxr-xr-x  8 lwk lwk 4096 Jan  7 21:24 .git/
-rw-r--r--  1 lwk lwk    7 Jan  7 21:24 .gitignore
drwxr-xr-x  3 lwk lwk 4096 Jan  7 21:24 page/
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote add inner [email protected]:liuwenke/eapp-isv-project-fe.git
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote -v
inner	[email protected]:liuwenke/eapp-isv-project-fe.git (fetch)
inner	[email protected]:liuwenke/eapp-isv-project-fe.git (push)
origin	[email protected]:ab-sample/eapp-isv-project-fe.git (fetch)
origin	[email protected]:ab-sample/eapp-isv-project-fe.git (push)
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git push inner master 
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (12/12), 2.41 KiB | 2.41 MiB/s, done.
Total 12 (delta 0), reused 12 (delta 0)
To 192.168.1.2:liuwenke/eapp-isv-project-fe.git
 * [new branch]      master -> master
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote remove origin 
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote -v
inner	[email protected]:liuwenke/eapp-isv-project-fe.git (fetch)
inner	[email protected]:liuwenke/eapp-isv-project-fe.git (push)
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote rename inner origin
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote -v
origin	[email protected]:liuwenke/eapp-isv-project-fe.git (fetch)
origin	[email protected]:liuwenke/eapp-isv-project-fe.git (push)
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章