git remote add for feiba

原创
2021/01/07 21:30
阅读数 225

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


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$
展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部