Skip to content

Instantly share code, notes, and snippets.

@wyudong
Last active July 29, 2019 09:50
Show Gist options
  • Save wyudong/fa34af4717c4b9af4f3bb8725ebdd442 to your computer and use it in GitHub Desktop.
Save wyudong/fa34af4717c4b9af4f3bb8725ebdd442 to your computer and use it in GitHub Desktop.
# System
alias ls='ls -G'
alias ll='ls -ahl'
alias ..='cd ..'
alias ...='cd ../..'
alias rrr='rm -rf'
alias editbash='vi ~/.bashrc'
alias editalias='vi ~/.bash_aliases'
alias sb='source ~/.bashrc && echo "Done!"'
# Git
alias cl='git clone'
alias log="git log --color --graph --pretty=format:'%C(auto)%h%Creset%C(auto)%d%Creset %C(auto)%cd%Creset %C(blue)<%an>%Creset %s' --date=short"
alias st='git status'
alias add='git add .'
alias cm='git commit -m'
alias br='git branch'
alias ch='git checkout'
alias diff='git diff'
alias fetch='git fetch'
alias push='git push origin HEAD'
alias pull='git pull'
alias reset.hard='git reset HEAD --hard'
alias reset.mixed='git reset HEAD~ --mixed'
alias reset.soft='git reset HEAD~ --soft'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment