DEV Community

Clavin June
Clavin June

Posted on • Originally published at on


Change Directory to Git Root Directory

Sunday Snippet #9 change directory to git root directory

$ pwd
$ cd `git rev-parse --show-toplevel`
$ pwd
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

50 CLI Tools You Can't Live Without

>> Check out this classic DEV post <<