Skip to content

Instantly share code, notes, and snippets.

@devhijazi
Created June 27, 2022 14:33
Show Gist options
  • Save devhijazi/c1c52774151a38906a3bdc63c3bba338 to your computer and use it in GitHub Desktop.
Save devhijazi/c1c52774151a38906a3bdc63c3bba338 to your computer and use it in GitHub Desktop.
[user]
email = seu_email
name = seu_nome
[credential "https://github.com"]
helper = !gh auth git-credential
# Créditos Isaque Lima (github.com/izakdvlpr)
[alias]
pl = pull
ps = push
b = branch
ci = "!f() { git commit -m \"$*\"; }; f"
co = checkout
cm = checkout main
cb = checkout -b
st = status -sb
sf = show --name-only
mg = merge
l = log --pretty=format:'%C(yellow)%h %C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
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
[core]
autocrlf = false
[http]
version = HTTP/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment