Skip to content

Instantly share code, notes, and snippets.

@pablo1v
Last active October 26, 2022 19:24
Show Gist options
  • Save pablo1v/71751979bc284bd4dda77988fcbf47ea to your computer and use it in GitHub Desktop.
Save pablo1v/71751979bc284bd4dda77988fcbf47ea to your computer and use it in GitHub Desktop.
[user]
name = Pablo Vinícius
email = 62220882+pablo1v@users.noreply.github.com
[core]
autocrlf = input
[init]
defaultBranch = main
[http]
version = HTTP/2
[pull]
rebase = false
[alias]
status = status -sb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment