zoukankan      html  css  js  c++  java
  • git rebase的使用

    1、克隆远端的仓库

    2、在本地克隆的仓库下载代码

           git clone <个⼈仓库地>

    3、添加远程仓库和本地fock仓库的关联

         git remote add remote <远程仓库地>

        查看远程仓库的版本

         git remote -v

    4、本地方库更新远程仓库的代码

         git pull remote master --rebase

    这是很多基于github做代码仓库的公司的开发流程,通过rebase进行代码时间线的规整

    那么来总结下遇到的问题

    一、

     出现这个提示,是阻止你上传代码。

      1、出现冲突了

           git pull remote master --rebase 拉下代码,然后在本地解决下冲突,然后提交。

    2、解决完冲突时候还出现,需要用强推

          git push -f origin JM-5102

    二、 PS(待完善)

            

  • 相关阅读:
    P5304旅行者(比bk201还要流氓的解法)
    考试T1护花
    考试T2修剪草坪
    考试T3麻将
    账号密码
    T7
    P2885 [USACO07NOV]电话线Telephone Wire
    P4965 薇尔莉特的打字机
    P1505 [国家集训队]旅游
    T2
  • 原文地址:https://www.cnblogs.com/ricklz/p/11489768.html
Copyright © 2011-2022 走看看