Last active
October 10, 2023 18:27
-
-
Save bernardoadc/93b879fedcd9dc60be58e2b7746b5a5c to your computer and use it in GitHub Desktop.
GIT Configs
This file contains hidden or 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
# should not contain [user], [credential] and [include]s | |
# nor machine/remotes specific stuff | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[branch] | |
autosetuprebase = always | |
autosetupmerge = always # com checkout (remoto ou nao) faz tracking do branch | |
[core] | |
editor = code -r --wait # para rebase interactive e commit msg | |
editor2 = sublime -w | |
autocrlf = true # true -> *nix + win; false -> win only; input -> dont! only if bash in win | |
whitespace = -blank-at-eol,-blank-at-eof,-trailing-space | |
[diff] | |
tool = vscode | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE | |
[rerere] | |
enabled = true | |
# autoupdate = true poe no stage ao inves de acatar commit | |
[pull] | |
rebase = true | |
[push] | |
followTags = true | |
[alias] | |
cfs = config --system -e # base system settings (intentionally dup) | |
cfu = config --global -e # user and machine/host settings (intentionally dup) | |
cfa = !"git config -e --file $(git config --global --get-all include.path | grep "/.gitconfig") #" # additional settings (this, intentionally dup) | |
# color.ui true | |
# format.pretty oneline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment