CD to the root of current GIT repo

2 points by philipthrasher ↗ HN
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 -

0 comments

[ 2.4 ms ] story [ 6.9 ms ] thread

No comments yet.