Skip to content

Commit

Permalink
Add fix: a shorthand to stash/rebase/unstash
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed Sep 5, 2019
1 parent 494e832 commit adc476a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@
# This is a slightly modified version
fixup = "!f() { TARGET=$(git rev-parse \"$1\"); git commit --fixup=$TARGET && GIT_EDITOR=true git rebase --interactive --autosquash $TARGET~; }; f"

# Shorthand to stash/rebase/unstash
fix = !"f(){ git rebase --autostash -i \"${@:-HEAD^^}\";};f"

### reflog ###

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

0 comments on commit adc476a

Please sign in to comment.