337 B
337 B
git 根目录
打印当前 Git 仓库的根目录。 这是
git-extras
的一部分。 更多信息: https://github.com/tj/git-extras/blob/master/Commands.md#git-root。
- 打印当前 Git 仓库的绝对路径:
git root
- 打印当前工作目录相对于当前 Git 仓库根目录的路径:
git root --relative