使用git参与团队开发过程中所踩的坑

***我简述下写作背景吧,由于多次使用 -f 强制推送,被说了。。。***。
##1. Updates were rejected because the tip of your current branch is behind
使用git参与团队开发过程中所踩的坑
git pull后,选择直接git push未能成功
报错:分支冲突。
描述:Updates were rejected because the tip of your current branch is behind its remote counterpart.
网上传的git pull origin master git push -u origin master不能解决我的问题。
解决步骤:

  1. git pull
  2. git status
    (此时报错Unmerged paths: (use “git add …” to mark resolution))
    Unmerged paths:
    (use “git add …” to mark resolution)使用git参与团队开发过程中所踩的坑
  3. git add . 之后敲击回车
  4. git commit -m 'xxx’再次提交
  5. git push使用git参与团队开发过程中所踩的坑使用git参与团队开发过程中所踩的坑

踩坑之后会第一时间更新。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2021-05-11
  • 2021-11-03
  • 2022-02-10
  • 2021-07-12
  • 2021-04-04
相关资源
相似解决方案