大公司,规范比较多,git commit时必须要加user story的号,没加就不让push

于是就要撤销commit

先git log看看提交历史:

git如何撤销commit

然后git reset ,要reset到最近提交之前的一个id:389074a..........那个,

然后重新commit,push。

 

 

相关文章:

猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2021-05-13
  • 2021-08-30
  • 2022-02-22
  • 2021-08-07
相关资源
相似解决方案