在IntelliJ idea里使用git提交代码时,commit and push,commit发现冲突。git Pull之后发现有同事刚提交了代码,现在要取消commit,要怎么做?

很简单,git Pull之后,在Version Control里,选择log。选择需要回到的一条,右键,在重新定位head即可。因为这里的commit并没有把代码提交到仓库,只是在本地标记下。

IntelliJ idea git提交代码冲突,取消commit

相关文章:

  • 2021-10-21
  • 2022-01-08
  • 2022-01-21
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2021-07-24
  • 2022-02-05
  • 2021-06-23
  • 2021-08-24
相关资源
相似解决方案