• 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)
  • 相关阅读:
    [设计模式]C++实现单例
    JMeter基本使用
    Dev TextEdit限制只输入数字
    sql优化方式
    MySql中的索引
    SQL索引的概念
    mysql sql语句大全
    bandedGridView定位尾行(GridView通用)
    GridView中的下拉框赋值
    使得 XtraEditors.TextEdit 失去焦点(LostFocus)的方法
  • 原文地址:https://www.cnblogs.com/654321cc/p/9278699.html
Copyright © 2020-2023  润新知