by kenmazy · 14y ago · 0 comments
Two extremely useful aliases:
[alias]
fi = !sh -c 'git commit -m \"fixup! $(git log -1 --format='\\''%s'\\'' $@)\"' -
ri = rebase --interactive --autosquash
First alias allows me to create a commit prefixed with fixup! very easily. So workflow looks like this: 2536aw3 implementing feature foo
sfd93ja fixup! implementing feature foo
ok4jzvd fixup! implementing feature foo
k4okvxx fixup! implementing feature foo
2okoswa fixup! implementing feature foo
zxvorm3 fixup! implementing feature foo
ko2koaa fixup! implementing feature foo
And then I rebase when git log --graph --pretty goes off the screen.No comments yet.