Skip to content

Instantly share code, notes, and snippets.

@VincentRbbmnd
Last active September 29, 2016 05:01
Show Gist options
  • Save VincentRbbmnd/5ed1157191f833edff7d to your computer and use it in GitHub Desktop.
Save VincentRbbmnd/5ed1157191f833edff7d to your computer and use it in GitHub Desktop.
Useful git config
# Default all new branches to fetch and rebase - not merge
git config --global branch.autosetuprebase always
# Record any merge conflict resolutions and reuse them automatically
git config --global rerere.enabled true
# Aliases
# Status
git config --global alias.st "status"
# Silent status
git config --global alias.s "status -s"
# Checkout
git config --global alias.co "checkout"
# Branch
git config --global alias.br "branch"
# Useful/Pretty logging
git config --global alias.lg "log --oneline --decorate --all --graph"
# Configure line endings correctly on Linux/Mac
git config --global core.autocrlf input
# Configure line endings correctly on Windows
git config --global core.autocrlf true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment