Skip to content

Instantly share code, notes, and snippets.

@MateusMaceedo
Last active May 5, 2021 01:02
Show Gist options
  • Save MateusMaceedo/b32b46edd1db278f526cae4ccf3cabfb to your computer and use it in GitHub Desktop.
Save MateusMaceedo/b32b46edd1db278f526cae4ccf3cabfb to your computer and use it in GitHub Desktop.
.gitconfig
[user]
email = mateusouza2014@live.com
name = MateusMaceedo
[code]
editor = code --wait
[alias]
ci = commit
co = checkout
cm = checkout master
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
staging = switch staging
new = switch -c
delete = branch -D
track = branch --set-upstream-to=origin/
pushd = push -u origin HEAD
update = pull origin staging
[commit]
gpgsign = true
[pull]
rebase = false
[fetch]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment