Skip to content

Commit adc476a

Browse files
Add fix: a shorthand to stash/rebase/unstash
1 parent 494e832 commit adc476a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitalias.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@
316316
# This is a slightly modified version
317317
fixup = "!f() { TARGET=$(git rev-parse \"$1\"); git commit --fixup=$TARGET && GIT_EDITOR=true git rebase --interactive --autosquash $TARGET~; }; f"
318318

319+
# Shorthand to stash/rebase/unstash
320+
fix = !"f(){ git rebase --autostash -i \"${@:-HEAD^^}\";};f"
321+
319322
### reflog ###
320323

321324
# reflog - reference log that manages when tips of branches are updated.

0 commit comments

Comments
 (0)