I have my Git repository which, at the root, has two sub directories:
/finisht /static
When this was in SVN, /finisht was chec
/finisht
I just wrote a script for GitHub.
Usage:
python get_git_sub_dir.py path/to/sub/dir