Created
October 4, 2012 15:40
-
-
Save ncherro/3834467 to your computer and use it in GitHub Desktop.
Bash function to cd to the project root
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
# cd to the git root | |
cd.() { | |
cd $(git rev-parse --show-toplevel) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment