Added useful fixup alias to make ammending old commits easier
This commit is contained in:
2
git/configs/alias.gitconfig
Normal file
2
git/configs/alias.gitconfig
Normal 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"
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user