Skip to content

Instantly share code, notes, and snippets.

@moznion
Last active October 12, 2015 00:38
Show Gist options
  • Save moznion/3944260 to your computer and use it in GitHub Desktop.
Save moznion/3944260 to your computer and use it in GitHub Desktop.
Set up git
#!/bin/sh
# Alias
git config --global alias.br 'branch'
git config --global alias.ci 'commit'
git config --global alias.co 'checkout'
git config --global alias.di 'diff'
git config --global alias.dw 'diff --word-diff'
git config --global alias.l 'log --decorate'
git config --global alias.mg 'merge'
git config --global alias.pl 'pull'
git config --global alias.ps 'push'
git config --global alias.rb 'rebase'
git config --global alias.st 'status -sb'
# Other
git config --global color.ui auto
git config --global core.editor vim
# Newline character
git config --global core.autocrlf input
git config --global core.safecrlf true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment