git remote的使用

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 糖糖~~ 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/zhengcl/p/5307538.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值