Downloads sub-directory of a github repository.
Switch branches/tags
Nothing to show
Latest commit e7a0a5b Jan 13, 2017 @mfbx9da4 committed on GitHub Merge pull request #4 from lsissoko/master
Options flags for branch and private repo credentials
Failed to load latest commit information. add branch example to readme Jan 20, 2016 useless line Jan 20, 2016

Downloads git sub dir

##Usage python user/repo python user/private_repo --private

##Options Flags:

  • --private: the repo is private (default is False, username and password will be requested)
  • -r: recursive download (default is True)
  • -p: filepath
  • -b: branch


Let's download the docs from twitter bootstrap

python twbs/bootstrap -p docs

If we don't want it to be recursive

python twbs/bootstrap -p docs -r False

If we want a specific file

python twbs/bootstrap -p docs/examples/blog/index.html

If we want to download from a specific branch (say fix-15534)

python twbs/bootstrap -p docs/examples/blog/index.html -b fix-15534