Skip to content

Instantly share code, notes, and snippets.

@cristianprochnow
Forked from diego3g/.gitconfig
Last active February 28, 2024 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cristianprochnow/5f51877016e42daef1822b2e8a7e4e3f to your computer and use it in GitHub Desktop.
Save cristianprochnow/5f51877016e42daef1822b2e8a7e4e3f to your computer and use it in GitHub Desktop.
[init]
defaultBranch = main
[core]
autocrlf = false
eol = lf
[user]
name = Cristian Prochnow
email = cristianprochnow@gmail.com
[credential]
helper = store
[alias]
ad = add .
remo = remote add origin
rem = remote add
c = commit
ci = commit -m
ps = push origin
pl = pull origin
b = branch
br = branch -r
co = checkout
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
unstage = reset HEAD --
undo = checkout --
rollback = reset --soft HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment