Skip to content

Instantly share code, notes, and snippets.

@BlazOrazem
Last active May 8, 2016 09:56
Show Gist options
  • Save BlazOrazem/88694f891af09fb05f3c773eb6a5440d to your computer and use it in GitHub Desktop.
Save BlazOrazem/88694f891af09fb05f3c773eb6a5440d to your computer and use it in GitHub Desktop.
BashAliases - with Git
# CUSTOM
alias www='cd d:/www'
# FILE/FOLDER MANAGING
alias root='cd ~/'
alias cd..='cd ..'
alias ll='ls -lah'
alias md='mkdir'
alias rd='rm -rf'
alias rm='rm -i'
alias edit='vi'
alias rename='mv'
alias new='touch'
alias clr='clear'
alias cls='clear'
# SYSTEM RELATED
alias vialias='vi ~/.bash_aliases'
alias showalias='cat ~/.bash_aliases'
alias vietc='vi c:/Windows/System32/drivers/etc/hosts'
alias showetc='cat c:/Windows/System32/drivers/etc/hosts'
alias delc='rm c:/Users/User/AppData/Local/Temp/cache/* -f'
# GIT
alias add='git add --all'
alias com='git commit -m'
alias cam='git commit --amend'
alias remote='git remote add origin'
alias push='git push -u origin master'
alias pull='git pull origin master'
alias rebase='git rebase origin/master'
alias fetch='git fetch --all --prune --verbose --progress'
alias branch='git checkout -b'
alias switch='git checkout'
alias diff='git diff'
alias gst='git status'
alias gstr='git remote update && git status'
alias log='git log --pretty=oneline'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment