• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Joan
博客园    首页    新随笔    联系   管理    订阅  订阅
git创建分支提交到远程分支步骤

git创建分支提交到远程分支步骤

step1,在本地新建分支()

git branch newbranch

step2:把本地分支push到远程

git push origin newbranch

step3:切换到该分支

git checkout newbranch

step4:查看本地修改

git status

step5:添加本地修改

git add .

step6:commit修改

git commit -m 'XXXX'

step7:push代码

git push
step8:查看分支

git branch

step8 :切换到主分支

git checkout master

step9:更新

git pull

step10:合并到主分支

git merge newbranch

step11:push 到主分支

git push

作者:Joan
出处:http://www.cnblogs.com/Joans/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
posted on 2018-10-15 10:38  Joans  阅读(21625)  评论(2)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3