Skip to content

Instantly share code, notes, and snippets.

@kaylarose
Last active August 29, 2015 13:56
Show Gist options
  • Save kaylarose/9264746 to your computer and use it in GitHub Desktop.
Save kaylarose/9264746 to your computer and use it in GitHub Desktop.
Git Snippets
git config --global alias.ksreview '!f() { local SHA=${1:-HEAD}; local BRANCH=${2:-master}; if [ $SHA == $BRANCH ]; then SHA=HEAD; fi; git difftool -y -t Kaleidoscope $BRANCH...$SHA; }; f'
git config --global alias.ksshow '!f() { local SHA=${1:-HEAD}; git difftool -y -t Kaleidoscope $SHA^..$SHA; }; f'
git config --global alias.ksdiff "difftool -y -t Kaleidoscope"
git config --global core.editor vim
git config --global color.ui true
# || git config --global color.ui auto
git config --global rerere.enabled true
git config --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment