多人开发同一个分支git提交问题
2023-09-11 14:15:07 时间
问题描述
开发过程在中发现一个公共模块的bug,需要每一个开发人员针对自己的做出修改,于是创建一个新分支 fix_bug 大家在这个分支上统一修改。
修复bug过程
1. 切换到fix_bug分支
git checkout fix_bug
2. 修改bug
3. 提交代码
git stash
git pull
git stash pop
// 可能有冲突,合并代码
git add .
git commit -m '修复bug'
git push
// 如需多次提交,重复上述提交代码命令即可
相关文章
- [Git] git merge之squash
- [Git] git shortlog 找出最懒的程序员
- Git 代码更新:git fetch 和 git pull 的区别
- PhpStorm 集成 开源中国(oschina.net)的Git项目,提交SVN时注意事项
- Git 常用命令(转)
- 【学习总结】Git学习-GIT工作流-千峰教育(来自B站)
- iOS开发那些事-Git在Xcode中的配置与使用
- [Git] git Ignore a File that has Already been Committed and Pushed
- [Git] Use and Compare the Different git Reset Options: --hard, --soft, and --mixed
- [Git] Use git add --patch for better commit history and mitigating bugs
- Git 常用命令 ( 简化开发 )
- 【项目实战】IDEA中Git与Gitlab的基本使用
- 开发的必杀技:Git 的分支管理
- git clone开启云上AI开发
- git报错You are not allowed to force push code to a protected branch on this project
- git-【八】多人协作
- 分享一篇 Git Web 开发流程
- Git知识总览(四) git分支管理之rebase 以及 cherry-pick相关操作
- Git知识总览(二) git常用命令概览
- Git 管理工具 SourceTree 的使用(上手简单,不熟悉git命令的开发者必用)
- 一文吃透 VS Code+Git 操作(vs code中git的相关配置与使用)
- Git — 解决“requested upstream branch ‘origin/master‘ does not exist“
- Pycharm中修改git提交代码的账户和用户名【Git追溯注解,git blame】
- [Git & GitHub] 怎么团队合作多人开发项目