git把本次修改的内容添加到上次提交中

特别注意:commit(提交) 不等于 push(推送),如果已经push了,那么这个方法就没意义了,只能重新push代码。

适用情况:代码已经commit了,但是又新修改了一点代码,为了减少提交日志,就可以使用本方法。
当然我们也可以直接撤销上次提交,然后修改代码。

git把本次修改的内容添加到上次提交中

原文连接:
https://www.cnblogs.com/xuyaowen/p/git-commit-amend.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-01-23
  • 2021-06-30
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
相关资源
相似解决方案