Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 752 Bytes

README.md

File metadata and controls

36 lines (21 loc) · 752 Bytes

git_clone_script

Updation:

Adding git pull functionality if repo exists else create new repo on given path.

---

Clone all repos related to a user or clone single user repo.

Requirements Python 3.x, pip

How to run? Move to , create virtual environment and then activate it as

$ cd

$ virtualenv .environment

$ source .environment/bin/activate Add project to PYTHONPATH as

$ export PYTHONPATH="$PYTHONPATH:." # . corresponds to current directory(project-dir) Under install requirements/dependencies as

$ pip install -r requirements.txt Then run script.py as

$ python3 script.py -u "git username"

or

for single directory clone

$ python3 script.py -u "git username" -r "git user repo name"