Skip to content

Instantly share code, notes, and snippets.

@lbrito1
Last active October 22, 2015 17:03
Show Gist options
  • Save lbrito1/eb65d1ca1d130823109b to your computer and use it in GitHub Desktop.
Save lbrito1/eb65d1ca1d130823109b to your computer and use it in GitHub Desktop.
# $HOME/.gitconfig
[user]
name = Leonardo Brito
email = lbrito@gmail.com
[core]
editor = vim
[alias]
aa = add --all
bv = branch -vv
ba = branch -ra
bd = branch -d
ca = commit --amend
cb = checkout -b
cm = commit -a --amend -C HEAD
ci = commit -a -v
co = checkout
di = diff
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
--date=short --graph
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorat
e --date=relative
un = reset HEAD^
# ~/.bashrc
# Git aliases
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff'
alias ga='git add'
alias gc='git commit'
alias gcm='git commit -m'
alias gb='git branch'
alias gco='git checkout'
alias gcob='git checkout -b'
alias glog='git log'
alias glogp='git log --pretty=format:"%h %s" --graph'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment