Skip to content

Instantly share code, notes, and snippets.

@radub
Last active August 29, 2015 14:13
Show Gist options
  • Save radub/84134c6bf8feb1c2c4fe to your computer and use it in GitHub Desktop.
Save radub/84134c6bf8feb1c2c4fe to your computer and use it in GitHub Desktop.
.gitconfig
[user]
email = emailhere
name = namehere
[color]
ui = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = blue
untracked = green
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
# lol = log --graph --decorate --pretty=oneline --abbrev-commit
lol = log --name-only --pretty=format:'%C(yellow)%h%C(reset) %s%d [%an | %ad]' --graph --decorate --abbrev-commit
# lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lola = log --name-only --pretty=format:'%C(yellow)%h%C(reset) %s%d [%an | %ad]' --graph --decorate --abbrev-commit --all
ls = ls-files
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
[core]
editor = vim
filemode = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment