Created
November 27, 2015 10:13
-
-
Save anonymous/05c601dc2835927de946 to your computer and use it in GitHub Desktop.
My preferred git settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# My favourite flavour of git lg | |
git config --global alias.lg "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --all --date-order" | |
# Rebase by default for all new branches | |
git config branch.autosetuprebase always | |
# Remember login details for 2 hours | |
git config --global credential.helper "cache --timeout=7200" | |
# If results can be shown in one screen, the console doesn't become interactive (i.e. you have to press q to exit) | |
git config --global pager.log "less -rFX" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment