Last active
December 24, 2015 01:19
-
-
Save kcollasarundell/6722753 to your computer and use it in GitHub Desktop.
versioncontrol your gitconfig but the gitlocal should be a host\env specific allowing you to differentiate between work commits and personal without losing the gitconfigalso get the following:Gitgutter for vim and sublimegit-up gem
This file contains hidden or 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
[include] | |
path = .gitlocal | |
[alias] | |
lol = log --graph --decorate --pretty --oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
hlog = log --pretty=format:'The author of %h was %an, %ar%nThe title was >>%s<<%n' | |
unstage = reset HEAD -- | |
tree = log --graph --oneline --pretty=oneline --all | |
treeall = log --oneline --decorate --all --decorate --graph | |
lg = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit --date=relative | |
ll = log --stat --abbrev-commit | |
ds = diff --cached | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[push] | |
default = upstream | |
[diff] | |
tool = meld | |
algorithm = patience |
This file contains hidden or 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
[user] | |
name = Yournamehere | |
email = Youremailhere |
This file contains hidden or 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
#turn off kerberos authentication to speed up the initial connection (don't do this in environments making use of it) | |
GSSAPIAuthentication no | |
GSSAPIKeyExchange no | |
#don't hash the known hosts so your shell can use it as a tab complete source (possible information leak) | |
HashKnownHosts no | |
# persist the ssh connection for 5 minutes | |
# subsequent ssh connections respond faster because its reusing an existing connection | |
ControlMaster auto | |
ControlPath /tmp/master-%r@%h:%p | |
ControlPersist 5m | |
#keep your connection alive | |
serveraliveinterval 20 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment