Skip to content

Instantly share code, notes, and snippets.

@raffecat
Created January 2, 2022 05:38
Show Gist options
  • Save raffecat/28581b406c7160d5e484f9b6ed1ac3c2 to your computer and use it in GitHub Desktop.
Save raffecat/28581b406c7160d5e484f9b6ed1ac3c2 to your computer and use it in GitHub Desktop.
Git Setup
git config --global user.name "My Name"
git config --global user.email "myname@gmail.com"
git config --global core.autocrlf false
git config --global core.filemode false
git config --global branch.autosetuprebase always
git config --global pull.rebase true
git config --global fetch.prune true # local inaccessible objects
git config --global diff.colorMoved zebra # show "moved" lines
git config --global push.default simple # only push current branch
git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
git config diff.ignoreSubmodules all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment