Skip to content

Instantly share code, notes, and snippets.

@pfedotovsky
Created September 23, 2018 10:41
Show Gist options
  • Select an option

  • Save pfedotovsky/f77698a9be2ad4ae65fa774d89d78f1c to your computer and use it in GitHub Desktop.

Select an option

Save pfedotovsky/f77698a9be2ad4ae65fa774d89d78f1c to your computer and use it in GitHub Desktop.

Revisions

  1. pfedotovsky created this gist Sep 23, 2018.
    17 changes: 17 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    [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'