想象一下在注释或类似的地方打错字:
- // Do thigns + // Do things
现在,通过git blame @ -- file查看提交,该行最初添加在:
git blame @ -- file
decafbad ... // Do things
您可以通过运行以下命令手动修改该行git commit --fixup decafbad。
git commit --fixup decafbad
有没有办法自动执行此git blame @ -- file |grep thigns,git commit --fixup decafbad周期?
git blame @ -- file |grep thigns