Skip to content

Instantly share code, notes, and snippets.

@kcollasarundell
Last active December 24, 2015 01:19
Show Gist options
  • Save kcollasarundell/6722753 to your computer and use it in GitHub Desktop.
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
[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
[user]
name = Yournamehere
email = Youremailhere
#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