Skip to content

Instantly share code, notes, and snippets.

@todb-r7
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todb-r7/4f21b1b5607b85d83945 to your computer and use it in GitHub Desktop.
Save todb-r7/4f21b1b5607b85d83945 to your computer and use it in GitHub Desktop.
.gitconfig
# Ensure .ruby-version isn't 2.1.4 when switching branches, but change it when you get there.
co = !"GIT_TOP=$(git rev-parse --show-toplevel); git checkout -- $GIT_TOP/.ruby-version; \
git checkout $1; echo 2.1.4 > $GIT_TOP/.ruby-version; #"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment