github项目开发步骤

  • fork 项目

  • git clone fork后的项目

  • git remote add masterOrigirn [email protected]:orientationsys/CANP.git 添加主仓库

  • git fetch masterOrigirn 拉主仓库最新代码

  • git merge masterOrigirn/master 合并主仓库master分支代

    • git checkout master 切换到主分支

    • git fetch masterOrigirn 拉主仓库最新代码

    • git merge masterOrigirn/master 合并主仓库master分支代码

    • git checkout -b new-ticket(和任务相关名字的分支)

    • git add . 将代码加入暂存区

    • git commit -m '需要说明的提交内容' 将代码提交到缓存区

    • git push origin 所在的工作分支名称 将代码提交到你fork的远程仓库中

    • 在github网站上进行发起pr

    • 确认无误,合并pr

猜你喜欢

转载自blog.csdn.net/ttn456456/article/details/80436863