git remote add for feiba

£可爱£侵袭症+ 提交于 2021-01-07 22:53:46

将现有代码仓库分支推送到其他仓库上去。


lwk@qwfys:~/Public/project/qwfys$ git clone git@gitee.com: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 git@192.168.1.2:liuwenke/eapp-isv-project-fe.git
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$ git remote -v
inner	git@192.168.1.2:liuwenke/eapp-isv-project-fe.git (fetch)
inner	git@192.168.1.2:liuwenke/eapp-isv-project-fe.git (push)
origin	git@gitee.com:ab-sample/eapp-isv-project-fe.git (fetch)
origin	git@gitee.com: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	git@192.168.1.2:liuwenke/eapp-isv-project-fe.git (fetch)
inner	git@192.168.1.2: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	git@192.168.1.2:liuwenke/eapp-isv-project-fe.git (fetch)
origin	git@192.168.1.2:liuwenke/eapp-isv-project-fe.git (push)
lwk@qwfys:~/Public/project/qwfys/eapp-isv-project-fe$
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!