DEV Community

Discussion on: What's your most used shortcut?

antelo profile image
Flavio Antelo

My favorites are the default git aliases from oh-my-zsh šŸ”„

# working with branches
gcb='git checkout -b'
gco='git checkout'
gcm='git checkout master'
gmom = git merge origin/master

# handling changes
gaa='git add --all'
glol=(beautiful git log)
gsta='git stash push'
gstaa='git stash apply'
gcam='git commit -a -m'
gd='git diff'

# synchronizing with remote branch
ggpull='git pull origin "$(git_current_branch)"'
ggpush='git push origin "$(git_current_branch)"'
Enter fullscreen mode Exit fullscreen mode