zoukankan      html  css  js  c++  java
  • git 一般用法

    在工作的时候通常用 git clone  url 下载一个项目到本地磁盘

    当然现在默认是本地的master 分支,如果要创建本地的新分支,并且还要有对应的新分支怎么办呢?

    1.git checkout -b new_branch

    2.git push origin new_branch

    3.

    new_branch  代码合并到qas

    git pull new_branch

     

    git fetch origin master

    git merge FETCH_HEAD -m 'from master'

    git push

     

    git checkout qas

    git pull origin qas

    git merge new_contract_yuqi -m 'from new_contract_yuqi'

    git push

    git checkout new_contract_yuqi

     

    自己拉自己分支pull 拉别人分支fetch

     

    new_branch  代码合并到master

    git pull new_branch

     

    git  fetch origin master

    git merge FETCH_HEAD -m ‘from master

    git push 

     

    git checkout master

    git pull origin master

    git merge new_contract_yuqi -m ‘from yuqi

    git push

     

    git checkout new_contract_yuqi

  • 相关阅读:
    poj2352树状数组
    hdu1166树状数组
    poj2785双向搜索
    poj2566尺取变形
    poj2100还是尺取
    poj3061尺取法
    poj3320尺取法
    hdu3829最大独立集
    poj2594最小顶点覆盖+传递闭包
    经典换根dp——hdu2196
  • 原文地址:https://www.cnblogs.com/xuezizhenchengxuyuan/p/6401406.html
Copyright © 2011-2022 走看看