Skip to content

CD to the root of current GIT repo

2 pointsphilipthrasherdiscuss
On 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 -

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.