git remote

列出所有的远程主机名字 这个显示的默认的origin

git remote -v

列出远程库的地址

git clone -o 远程库的自定义名字  远程库的地址

git clone -o jQuery https://github.com/jquery/jquery.git

git remote show  名字

查看远程库的信息$ git remote show origin
* remote originFetch URL: https://github.com/7117/CodePracticePush  URL: https://github.com/7117/CodePracticeHEAD branch: masterRemote branch:master trackedLocal branches configured for 'git pull':master merges with remote mastersunx   merges with remote masterLocal ref configured for 'git push':master pushes to master (up to date)

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

添加远程主机吧,名字既作用,哈哈哈哈!!!

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

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

Git的remote相关推荐

  1. git clone remote: HTTP Basic: Access denied

    git clone 项目失败,报下面的错误信息: $ git clone http://192.168.0.141/xxxx.git Cloning into 'appEnterprise'... r ...

  2. Git提交单个文件过大,git error: remote unpack failed:error Object too large

    Table of Contents 一. 上传git出错 二. git基本概念 三. 解决 参考链接 一. 上传git出错 error: remote unpack failed: error Obj ...

  3. 【Git】remote: error: cannot lock ref

    remote: error: cannot lock ref 今天拉了一个dev/pay/1.4.3 分支,push 时候出错: remote: error: cannot lock ref 'ref ...

  4. git remote添加其他SSH端口

    本文翻译自:git remote add with other SSH port 在Git中,当主机使用不同的SSH端口时,如何添加远程源服务器? git remote add origin ssh: ...

  5. usage: git remote add [options] name url -f, --fetch fetch the remote branches ...

    按照git官网提示输入 git pushgit remote add origin git@github.com:***3 / elm-1.git -u 链接git远程仓库 出现错误 usage: g ...

  6. git remote prune,git prune,git fetch --prune等有什么区别

    本文翻译自:What are the differences between git remote prune, git prune, git fetch --prune, etc My situat ...

  7. fatal remote does not appear to be a git repository

    我的情况是这样的 电脑重装系统, 然后重新clone下来之前连好的远程仓库, 现在貌似不能直接进行push了 $git push remote masterfatal: 'remote' does n ...

  8. Android Studio中Git更新本地的远程(remote)branch列表?

    比如你同事在Git的remote branch中新增branch xxx,但是你发现你在Android Studio中查看存在的branch时,并看不到他增加的branch,如果查看branch,请戳 ...

  9. git pull命令操作 git pull <remote> <branch>

    git pull命令操作 git pull <remote> <branch> git pull <remote> <branch> 解决1: git ...

最新文章

  1. Android 关于::app:clean :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE,引用jar冲突问题...
  2. python爬虫赚钱途径-如何利用python爬虫挣钱
  3. Java必备主流技术流程图
  4. And(CF-1013B)
  5. python高效开发实战配套源文件_分享12个python使用技巧,助你轻松掌握Python高效开发...
  6. python爬虫股票数据分析判断股票好坏_教你用Python爬虫股票评论,简单分析股民用户情绪...
  7. C++11 线程池的实现(基于muduo)
  8. OA系统权限管理设计方案
  9. 三款截图软件:Snipaste+FastStone-Capture+FireShot
  10. 商简智能学术成果|基于深度强化学习的联想电脑制造调度(Lenovo Schedules Laptop Manufacturing Using Deep Reinforcement Learning)
  11. VBA实现为Excel中自定义名称的单元格添加批注
  12. Springboot毕设项目咖啡馆管理系统4598u(java+VUE+Mybatis+Maven+Mysql)
  13. 弹幕的开发(DanmakuFlameMaster)
  14. matlab 2016b下载安装
  15. linux tar.7z如何解压,Linux下解压:tar、rar、7z命令简单易懂的教程
  16. c语言里编译错误c131,C语言习题选择题.doc
  17. jQuery中添加元素删除元素的方法
  18. 腾讯QQ大数据:BI方法论-数据体系建设之路
  19. 从苹果、SpaceX等高科技企业的产品发布会看企业产品战略和敏捷开发的关系
  20. 不加QQ好友而强制聊天(貌似现在出现了问题)

热门文章

  1. 17_Android中Broadcast详解(有序广播,无序广播)最终广播,Bundle传递参数,传递参数的时候指定权限
  2. 关于Eclipse创建Android项目时,会多出一个appcompat_v7的问题
  3. 窗口分析函数_10_计算组总和的占比
  4. 检索数据_15_将空值转成其它值
  5. python3源代码_Python3源代码编译安装
  6. python连接各种数据库数据_Python连接各种数据库
  7. Windows 10 Visual Studio 2015 配置 Caffe
  8. faster-rcnn原理及相应概念解释
  9. 二分查找算法及其变种
  10. UV认证应用安全标准的目的