zoukankan      html  css  js  c++  java
  • git删除远程分支

    • git 删除远程分支
    [root@Monitor Demo]# git branch -av
    * master                    f105caa Merge branch 'psr/psr-02'
      psr/psr-01                7cd0be2 now this branch and master branch is both modified this file.
      psr/psr-02                62ca72c psr_psr-02.txt has changed on psr/psr-02 branch
      remotes/origin/HEAD       -> origin/master
      remotes/origin/master     f105caa Merge branch 'psr/psr-02'
      remotes/origin/psr/psr-01 33737de add one line.
    [root@Monitor Demo]# git push --delete origin psr/psr-01
    To git@github.com:hienha/Demo.git
     - [deleted]         psr/psr-01
    [root@Monitor Demo]# git branch -av
    * master                f105caa Merge branch 'psr/psr-02'
      psr/psr-01            7cd0be2 now this branch and master branch is both modified this file.
      psr/psr-02            62ca72c psr_psr-02.txt has changed on psr/psr-02 branch
      remotes/origin/HEAD   -> origin/master
      remotes/origin/master f105caa Merge branch 'psr/psr-02'
    
    • git重命名远程分支,其实就是删除远程分支,然后重命名本地分支,然后推送到远程分支
    [root@Monitor Demo]# git branch
    * master
      psr/psr-01
      psr/psr-02
    [root@Monitor Demo]# git branch -m psr/psr-01 psr_psr-01
    [root@Monitor Demo]# git branch
    * master
      psr/psr-02
      psr_psr-01
    [root@Monitor Demo]# git push origin psr_psr-01
    Total 0 (delta 0), reused 0 (delta 0)
    To git@github.com:hienha/Demo.git
     * [new branch]      psr_psr-01 -> psr_psr-01
    [root@Monitor Demo]# git branch -av
    * master                    f105caa Merge branch 'psr/psr-02'
      psr/psr-02                62ca72c psr_psr-02.txt has changed on psr/psr-02 branch
      psr_psr-01                7cd0be2 now this branch and master branch is both modified this file.
      remotes/origin/HEAD       -> origin/master
      remotes/origin/master     f105caa Merge branch 'psr/psr-02'
      remotes/origin/psr_psr-01 7cd0be2 now this branch and master branch is both modified this file.
    
  • 相关阅读:
    C++11——Lambda表达式
    匿名空间使用
    C++11——可调用对象包装器、绑定器
    winhttp 发送https的get请求
    C++11——基于范围的for循环
    C++11——列表初始化
    C++11——委托构造和继承构造函数
    C++11——using的使用
    使用appnium,Uiautomatorviewer连接手机报错:Unexpected error while obtaining UI hierarchy java.lang.reflect.Invocation【已解决】
    逆向 | IATHook 全屏加速挂
  • 原文地址:https://www.cnblogs.com/ZhangRuoXu/p/6706557.html
Copyright © 2011-2022 走看看