git修改comment
2022-07-31 本文已影响0人
mundane
-
git commit --amend
, 会出现上一次提交的comment(vim模式下查看记录) - 按i进入insert模式,改好后esc, :wq!保存退出
-
git log
查看修改后的comment -
git push -f
强制推送到远端
git commit --amend
, 会出现上一次提交的comment(vim模式下查看记录)git log
查看修改后的commentgit push -f
强制推送到远端