Skip to content

Instantly share code, notes, and snippets.

@ncherro
Created October 4, 2012 15:40
Show Gist options
  • Save ncherro/3834467 to your computer and use it in GitHub Desktop.
Save ncherro/3834467 to your computer and use it in GitHub Desktop.
Bash function to cd to the project root
# 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