Skip to content

Instantly share code, notes, and snippets.

@batbayar-su
Last active February 17, 2021 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batbayar-su/4553489332e188c7dc93af7efb1fbe6f to your computer and use it in GitHub Desktop.
Save batbayar-su/4553489332e188c7dc93af7efb1fbe6f to your computer and use it in GitHub Desktop.
# general aliases
alias ll="ls -al"
alias reload="source ~/.zshrc"
alias reconfig="vim ~/.zshrc"
# git aliases
alias ga="git add"
alias gb="git branch"
alias gbcu="git branch --merged | egrep -v '(^\*|master|test)' | xargs git branch -d"
alias gc="git commit"
alias gca="git commit --amend --no-edit"
alias gcm="git commit -m"
alias gco="git checkout"
alias gd="git diff"
alias gl="git log"
alias gpl="git pull"
alias gps="git push"
alias gr="git reset"
alias gs="git status"
# Didn't included folder, server and configuration aliases since it is more personal :D
# alias go2apache="cd /etc/apache2"
# alias go2works="cd ~/works"
# alias con2stg="ssh username@101.101.101.102"
# alias con2prd="ssh username@101.101.101.101"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment