feat: add an alias to filter recent Git branches

This commit is contained in:
Stefan Imhoff
2023-01-12 18:17:55 +01:00
parent 4a8c96e979
commit dfe92527ee
2 changed files with 3 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ alias gwl 'git worktree list'
alias gwp 'git whatchanged -p'
alias gwr 'git worktree remove' # <path/name>
alias lg 'lazygit'
alias gcrb 'git branch --sort=-committerdate | fzf --header "Checkout Recent Branch" --preview "git diff --color=always {1}" --pointer="" | xargs git checkout '
# Vim/Neovim
alias v "vim"

View File

@@ -417,6 +417,7 @@ alias gw='git worktree'
alias gwl='git worktree list'
alias gwa='git worktree add' # <folder> <branch/hash>
alias gwr='git worktree remove' # <path/name>
alias gcrb='git branch --sort=-committerdate | fzf --header "Checkout Recent Branch" --preview "git diff --color=always {1}" --pointer="" | xargs git checkout '
# Vim
alias v='vim'