Added useful fixup alias to make ammending old commits easier

This commit is contained in:
2025-09-05 04:18:27 +02:00
parent c906025f68
commit b15b68fa5d
3 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ bat
git-delta
fd
rg
fzf
```
### Useful

View File

@@ -0,0 +1,2 @@
[alias]
fixup = "!f() { TARGET=$(git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 ); git commit --fixup=$TARGET ${@:2} && GIT_SEQUENCE_EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"

View File

@@ -1,6 +1,7 @@
[include]
path = ~/.dotfiles/git/configs/lfs.gitconfig
path = ~/.dotfiles/git/configs/delta.gitconfig
path = ~/.dotfiles/git/configs/alias.gitconfig
[push]
default = simple