Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
CD to the root of current GIT repo
2 points
by
philipthrasher
on Nov 16, 2012
|
hide
|
past
|
favorite
function groot() { cd $(git rev-parse --show-cdup); }
Place this in your .*shrc
P.S. If you want to get back to where you were in the git repo: cd -
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: