zoukankan      html  css  js  c++  java
  • git 远程仓库的使用

    https://git-scm.com/book/zh/v1/Git-基础-远程仓库的使用

    git remote 

    $ git remote
    origin

    git remote -v

    $ git remote -v
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (fetch)
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (push)
    $ git remote -v
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (fetch)
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (push)
    pb      git://github.com/factsbenchmarks/test.git (fetch)
    pb      git://github.com/factsbenchmarks/test.git (push)

    git remote add xx git://url

    $ git remote add pb git://github.com/factsbenchmarks/test.git

    git fetch xx

    git push origin master

    git remote show origin

    $ git remote show origin
    * remote origin
      Fetch URL: git://github.com/factsbenchmarks/taobao-jingdong.git
      Push  URL: git://github.com/factsbenchmarks/taobao-jingdong.git
      HEAD branch: master
      Remote branch:
        master tracked
      Local branch configured for 'git pull':
        master merges with remote master
      Local ref configured for 'git push':
        master pushes to master (up to date)

     

    git remote rename pb paul

    $ git remote rename pb paul
    
    zuo@DESKTOP-QN47U5R MINGW64 /d/test/taobao-jingdong (master)
    $ git remote -v
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (fetch)
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (push)
    paul    git://github.com/factsbenchmarks/test.git (fetch)
    paul    git://github.com/factsbenchmarks/test.git (push)

    git remote rm paul

    $ git remote rm paul
    
    zuo@DESKTOP-QN47U5R MINGW64 /d/test/taobao-jingdong (master)
    $ git remote -v
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (fetch)
    origin  git://github.com/factsbenchmarks/taobao-jingdong.git (push)
  • 相关阅读:
    判断IE浏览器的版本号
    解决下拉框第一行出现空格的问题
    Springboot整合log4j2日志全解
    Java NIO之Selector(选择器)
    ZooKeeper客户端 zkCli.sh 节点的增删改查
    Java API操作ZooKeeper
    ReentrantLock(重入锁)功能详解和应用演示
    MySQL高可用集群方案
    Redis高可用之集群配置(六)
    linux free命令详解
  • 原文地址:https://www.cnblogs.com/654321cc/p/9278699.html
Copyright © 2011-2022 走看看