糖糖~~

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

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

$ git remote
origin

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

$ git remote -v


2、git remote add <name> <url>

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

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


3、git remote rename <old> <new>

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

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


4、git remote remove <name>

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

$ git remote rm <主机名>


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

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

$ git remote show <主机名>

 

posted on 2016-03-22 17:10  糖糖~~  阅读(3005)  评论(0)    收藏  举报