This is the command git-root that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
git-root - show path of root
SYNOPSIS
git root OPTIONS
DESCRIPTION
print the path for the root directory of git repo
OPTIONS
-r, --relative
show the relative path from root directory to current directory
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
Use git-root online using onworks.net services