Last active
August 29, 2015 14:08
-
-
Save todb-r7/4f21b1b5607b85d83945 to your computer and use it in GitHub Desktop.
.gitconfig
This file contains 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
# 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