git 命令
git status git stash git diff git stash apply
多人开发同一分支:
- 切换到fix_bug分支
- git checkout fix_bug
-
修改bug
-
提交代码
- git stash
- git pull
- git stash pop // 可能有冲突,合并代码
- git add .
- git commit -m '修复bug'
- git push
// 如需多次提交,重复上述提交代码命令即可
git status git stash git diff git stash apply
多人开发同一分支:
修改bug
提交代码
// 如需多次提交,重复上述提交代码命令即可
相关推荐