Imagine making a typo in a comment or something trivially similar:
- // Do thigns
+ // Do things
Now, by doing git blame @ -- file
you see the commit the line was originally added in:
decafbad ... // Do thigns
You can make the fixup to that line manually by running: git commit --fixup decafbad
.
Is there any way to automate this git blame @ -- file |grep thigns
, git commit --fixup decafbad
cycle?