Skip to content

Instantly share code, notes, and snippets.

@pfedotovsky
Created September 23, 2018 10:41
Show Gist options
  • Save pfedotovsky/f77698a9be2ad4ae65fa774d89d78f1c to your computer and use it in GitHub Desktop.
Save pfedotovsky/f77698a9be2ad4ae65fa774d89d78f1c 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