logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-root - show path of root

Author

       Written by spacewander <spacewanderlzx@gmail.com>

Description

       print the path for the root directory of git repo

Examples

       $ cd .../git-extras/bin
       $ git root -r
       bin/
       $ git root
       /home/.../git-extras
       $ cd `git root`
       $ pwd
       /home/.../git-extras
       # then we can
       $ git add . && git commit

Name

git-root - show path of root

Options

       -r, --relative

       show the relative path from root directory to current directory

Reporting Bugs

       <https://github.com/tj/git-extras/issues>

See Also

       <https://github.com/tj/git-extras>

                                                  October 2024                                       GIT-ROOT(1)

Synopsis

gitrootOPTIONS

See Also