Zsh Git Aliases

[Solved] Zsh Git Aliases | Webassembly - Code Explorer | yomemimo.com
Question : zsh aliases

Answered by : hussain-ruhullah

# Create a custom file for aliases.zsh
touch $ZSH/custom/aliases.zsh
# write your zsh aliases in this file
vim $ZSH_CUSTOM/aliases.zsh
# Add the your alias
alias aliasName="command"
# source or simply restart your Terminal for updates
source ~/.zshrc

Source : | Last Update : Sat, 05 Feb 22

Question : zsh git aliases

Answered by : leonard

#https://kapeli.com/cheat_sheets/Oh-My-Zsh_Git.docset/Contents/Resources/Documents/index
> zsh
> alias | grep git
g=git
ga='git add'
gaa='git add --all'
gam='git am'
gama='git am --abort'
gamc='git am --continue'
gams='git am --skip'
gamscp='git am --show-current-patch'
gap='git apply'
gapa='git add --patch'
gapt='git apply --3way'
gau='git add --update'
gav='git add --verbose'
gb='git branch'
gbD='git branch -D'
gba='git branch -a'
gbd='git branch -d'
gbda='git branch --no-color --merged | command grep -vE "^([+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch -d 2>/dev/null'
gbl='git blame -b -w'
gbnm='git branch --no-merged'
gbr='git branch --remote'
gbs='git bisect'
gbsb='git bisect bad'
gbsg='git bisect good'
gbsr='git bisect reset'
gbss='git bisect start'
...

Source : https://kapeli.com/cheat_sheets/Oh-My-Zsh_Git.docset/Contents/Resources/Documents/index | Last Update : Wed, 20 Apr 22

Answers related to zsh git aliases

Code Explorer Popular Question For Webassembly