1、git remote [-v | --verbose]

不带选项的时候,git remote命令列出所有远程主机。

$ git remote
origin

使用-v选项,可以参看远程主机的网址。

$ git remote -v

git remote的使用


2、git remote add <name> <url>

git remote add 命令用于添加远程主机。

$ git remote add <主机名> <网址>

git remote的使用


3、git remote rename <old> <new>

git remote rename命令用于远程主机的改名

$ git remote rename <原主机名> <新主机名>

git remote的使用


4、git remote remove <name>

git remote rm命令用于删除远程主机

$ git remote rm <主机名>

git remote的使用


5、git remote [-v | --verbose] show [-n] <name>

git remote show命令加上主机名,可以查看该主机的详细信息

$ git remote show <主机名>

git remote的使用

 

posted on 2016-03-22 17:10 糖糖~~ 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2022-01-25
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-09-28
猜你喜欢
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案