Skip to content

Commit

Permalink
git: improve rebase aliases
Browse files Browse the repository at this point in the history
- the old riu is essentially ri with no upstream passed (although not
  passing an upstream implies --fork-point, which is probably a good
  change for me rather than bad)
- add rs for the common --autosquash case
  • Loading branch information
benknoble committed Jan 15, 2025
1 parent 7aebca3 commit e55e842
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion links/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
remerf = "!f() { git rebase \"$1\" \"$2\"; git checkout \"$1\"; git merge --ff-only \"$2\"; }; f"
rems = for-each-ref --sort=-committerdate --format=\"%(refname:short)\t%(color:red)%(authorname)\t%(color:blue)%(authordate:relative)%(color:reset)\" refs/remotes
ri = rebase --interactive
riu = rebase --interactive HEAD@{upstream}
ris = rebase --interactive --autosquash
rs = rebase --autosquash
s = status --short
sb = show-branch
sbu = sb HEAD HEAD@{upstream}
Expand Down

0 comments on commit e55e842

Please sign in to comment.