Skip to content

Instantly share code, notes, and snippets.

@mkropat mkropat/mkgitconfig

Last active Sep 24, 2019
Embed
What would you like to do?
Sensible Git defaults
git config --global core.commentchar ";"
git config --global push.default simple
git config --global core.autocrlf input
git config --global alias.ca 'commit --amend --no-edit'
git config --global alias.ci 'commit --verbose'
git config --global alias.co checkout
git config --global alias.dc 'diff --cached'
git config --global alias.di diff
git config --global alias.ff 'merge --ff-only'
git config --global alias.fp 'push --force-with-lease'
git config --global alias.l 'log --oneline'
git config --global alias.noff 'merge --no-ff'
git config --global alias.pullff 'pull --ff-only'
git config --global alias.st 'status --short'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.