git 命令

git status git stash git diff git stash apply

多人开发同一分支:

  1. 切换到fix_bug分支
  • git checkout fix_bug
  1. 修改bug

  2. 提交代码

    1. git stash
    2. git pull
    3. git stash pop // 可能有冲突,合并代码
  • git add .
  • git commit -m '修复bug'
  • git push

// 如需多次提交,重复上述提交代码命令即可

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务