-
-
Save esergueev/007d6c9e0344d3dfa59c51c095370a5d to your computer and use it in GitHub Desktop.
Helpful git config options
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
[core] | |
editor = code --wait # set VS Code as default editor | |
quotepath = false # display cyrillic names properly | |
autocrlf = false # Windows only projects. Don't convert LF to CRLF and vice versa during commit & checkout. Read carefully https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration | |
[pull] | |
rebase = true # pull = 'fetch + rebase' instead of 'fetch + merge' | |
[alias] | |
co = checkout # 'git co' instead of 'git checkout' | |
st = status # 'git st' instead of 'git status' | |
[fetch] | |
prune = true # autodelete remote references during fetch | |
[push] | |
default = current # 'git push -u' instead of 'git push -u <branch>' for pushing NEW branch | |
[help] | |
autocorrect = 1 # autocorrection for git commands, e.g. 'git claen -xd' will work. 1 means 0.1s wait before executing the righ command | |
[clean] | |
requireForce = false # 'git clean' instead of 'git clean -f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment