Skip to content

Instantly share code, notes, and snippets.

@jjpeleato
Last active November 4, 2020 08:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jjpeleato/908c4aa0579d60c802a4f5770ae70b6b to your computer and use it in GitHub Desktop.
.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