Skip to content

Instantly share code, notes, and snippets.

@jjpeleato

jjpeleato/.gitconfig

Last active Nov 4, 2020
Embed
What would you like to do?
.gitconfig file
[user]
name = José J. Peleato Pradel
email = jjpeleato@example.com
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[alias]
last = log -1 --stat
cp = cherry-pick
co = checkout
cl = clone
ci = commit
st = status -sb
br = branch
refresh = fetch -ap
unstage = reset HEAD --
undo = reset --hard HEAD~1
dc = diff --cached
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all
find = log --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
addu = add -u
[credential]
helper = cache --timeout=3600
[core]
filemode = false
[pull]
rebase = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment