Skip to content

Instantly share code, notes, and snippets.

@KL-7
Last active March 19, 2020 20:46
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 KL-7/b63b103e783b08113a31b7ff4d7b3c27 to your computer and use it in GitHub Desktop.
Save KL-7/b63b103e783b08113a31b7ff4d7b3c27 to your computer and use it in GitHub Desktop.
[alias]
aa = add --all
au = add --update
br = branch
ci = commit
co = checkout
dc = diff --no-prefix --cached
df = diff --no-prefix
glg = !git-graph-log
graph = log --graph --oneline --decorate --date-order
lg = log
st = status
stt = status -uno
sum = log --oneline
unstage = reset HEAD --
# General
alias ls="ls -G"
alias ll="ls -lAh"
# Completion for git `g` alias.
complete -o default -o nospace -F _git g
# Do not store in bash history duplicate commands or commands starting with a space
HISTCONTROL=ignoreboth
shopt -s histappend
PROMPT_COMMAND="history -a"
export EDITOR='subl -w'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment