Skip to content

Instantly share code, notes, and snippets.

@esergueev
Forked from pfedotovsky/.gitconfig
Created April 8, 2019 17:57
Show Gist options
  • Save esergueev/007d6c9e0344d3dfa59c51c095370a5d to your computer and use it in GitHub Desktop.
Save esergueev/007d6c9e0344d3dfa59c51c095370a5d to your computer and use it in GitHub Desktop.
Helpful git config options
[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