Skip to content

Instantly share code, notes, and snippets.

Last active February 4, 2022 15:23
  • Star 9 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
My git config file
status = auto
diff = auto
branch = auto
interactive = auto
ui = true
amend = !"git commit --amend -C HEAD"
st = status
ci = commit
co = checkout
br = branch
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
sm = log --summary
pp = push produccion +master:refs/heads/master
# hard reset
rshard = reset --hard HEAD
# undo last commit keeping files in stage
undolast = reset --soft HEAD^
untracked = ls-files . --exclude-standard --others
ignored = ls-files . --ignored --exclude-standard --others
# unstage file
unstage = reset HEAD
# unstage and remove local changes
discard = checkout HEAD
# show git aliases
aliases = config --get-regexp alias
# list contributor stats for this repo
contributors = !git shortlog -n -s --no-merges $@ | cat - && echo && echo total $(git rev-list --count HEAD)
# decorated graph view of one liner summarized commits from all branches. (inspired by git-extras)
tree = log --all --graph --decorate --oneline --simplify-by-decoration
name = Roberto - phproberto
email =
excludesfile = ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment