git remote

git remote

参考

查看远程仓库

git remote -v

1@DESKTOP-3H9092J MINGW64 /e/mozq/demo_project/haha(master)
$ git remote -v
origin  git@192.168.1.254:devops/haha.git (fetch)
origin  git@192.168.1.254:devops/haha.git (push)

添加远程仓库

git remote add org http://192.168.1.254/devopss/bala.git

1@DESKTOP-3H9092J MINGW64 /e/mozq/demo_project/haha(master)
$ git remote add org http://192.168.1.254/devopss/bala.git

1@DESKTOP-3H9092J MINGW64 /e/mozq/demo_project/haha(master)
$ git remote -v
org     http://192.168.1.254/devopss/bala.git (fetch)
org     http://192.168.1.254/devopss/bala.git (push)
origin  git@192.168.1.254:devops/haha.git (fetch)
origin  git@192.168.1.254:devops/haha.git (push)

删除远程仓库

git remote remove org

1@DESKTOP-3H9092J MINGW64 /e/mozq/demo_project/haha(master)
$ git remote remove org

1@DESKTOP-3H9092J MINGW64 /e/mozq/demo_project/haha(master)
$ git remote -v
origin  git@192.168.1.254:devops/haha.git (fetch)
origin  git@192.168.1.254:devops/haha.git (push)
posted @ 2019-11-15 08:26  没有理由不会呀  阅读(312)  评论(0编辑  收藏  举报