Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Last active December 18, 2015 14:29
Show Gist options
  • Save sarahhodne/5798070 to your computer and use it in GitHub Desktop.
Save sarahhodne/5798070 to your computer and use it in GitHub Desktop.
#!/bin/bash
pluginpath="$(dirname "$(readlink -f $0)")"
ln -svf "$pluginpath/gitconfig" "$HOME/.gitconfig"
ln -svf "$pluginpath/gitignore" "$HOME/.gitignore"
[include]
path = .gituser
[push]
default = simple
[core]
excludesfile = ~/.gitignore
[alias]
tip = !git --no-pager log -1
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
[diff]
tool = vimdiff
algorithm = histogram
[merge]
tool = vimdiff
conflictstyle = diff3
.*.sw?
.sw?
*~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment