Created
October 24, 2021 21:47
-
-
Save luizwhite/2975fe29731999413bac0424d2b67547 to your computer and use it in GitHub Desktop.
Git Config File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
excludesfile = ~/.gitignore_global | |
editor = vim | |
[color "status"] | |
added = green | |
changed = yellow | |
untracked = red | |
[color "branch"] | |
current = white | |
remote = red | |
[color "diff"] | |
meta = yellow | |
old = red | |
new = green | |
[alias] | |
ci = commit | |
ph = push -u origin HEAD | |
co = checkout | |
cdev = checkout develop | |
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 | |
add-cm = !git add -A && git commit | |
[commit] | |
template = ~/.gitmessage.txt | |
[user] | |
email = luiz.a.marques@kroton.com.br | |
name = Luiz Augusto | |
[pull] | |
ff = true | |
[init] | |
defaultBranch = main | |
[diff] | |
submodule = log | |
[submodule] | |
recurse = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment