Chris Forrence

Various Configurations

Published on June 12, 2016

Here are a few of the configuration options that I always use on my development systems.


These are the Git aliases that I have globally configured on my development systems:

alias.discard=checkout --
alias.unadd=reset HEAD

Setting Git aliases is pretty simple, they can be managed through git config.

# Example:
# git config --global alias.{key}={value}
git config --global alias.discard='checkout --'


These are the first entries that I add to my bash profile:

# Navigation
alias ..='cd .. && ls'
alias ll='ls -al'
alias lt='ls -alrt'
# Git
alias gs='clear && git status'
alias gd='clear && git diff'
alias gdd='clear && git diff --cached'
alias gc='git commit -m'