Skip to content

Commit

Permalink
Fix duplicate declaration of grm, update grb<*>
Browse files Browse the repository at this point in the history
  • Loading branch information
bittner committed Nov 2, 2023
1 parent e38696a commit 51872af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions aliases/available/git.aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ alias gblr='git branch --list --remotes'
alias gbm='git branch --move'
alias gbr='git branch --remotes'
alias gbt='git branch --track'
alias gdel='git branch -D'

# for-each-ref
alias gbc='git for-each-ref --format="%(authorname) %09 %(if)%(HEAD)%(then)*%(else)%(refname:short)%(end) %09 %(creatordate)" refs/remotes/ --sort=authorname DESC' # FROM https://stackoverflow.com/a/58623139/10362396
Expand Down Expand Up @@ -133,9 +132,9 @@ alias grm='git rm'
# rebase
alias grb='git rebase'
alias grbc='git rebase --continue'
alias grm='git rebase $(get_default_branch)'
alias grmi='git rebase $(get_default_branch) -i'
alias grma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) -i --autosquash'
alias grbm='git rebase $(get_default_branch)'
alias grbmi='git rebase $(get_default_branch) -i'
alias grbma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) -i --autosquash'
alias gprom='git fetch origin $(get_default_branch) && git rebase origin/$(get_default_branch) && git update-ref refs/heads/$(get_default_branch) origin/$(get_default_branch)' # Rebase with latest remote

# reset
Expand Down

0 comments on commit 51872af

Please sign in to comment.