To use these scripts, you need to install the PyGitHub and GitPython modules in the virtualenvironment (or the machine).
python3 -m pip install PyGitHub GitPython
- First of all, you need a GitHub Personal Access Token. You can get one form here, New personal access token | GitHub.
- Download the script which is needed. You can click on the
Raw
button and the save the script to your machine. - Replace the
xxxx
with a valid working token.token = "xxxx"
- Execute the script. ⛷️
python3 script_name.py
For setting up the dev-environment in PyCharm, we need to fork, clone and add the origin/upstream remotes to each project. This script automates the whole process.
NOTE: Execute this script where you need the sources
folder.
Result: You will have all the 15 repositories forked (if not done earlier), cloned into sources
folder
and all the upstream remotes setup correctly.
From time to time, we need to update the forks. This script automates the process of updating the master
branches of all the 15 repositories present in the sources
folder.
NOTE: Execute this script outside the sources
folder.
Result: You will have all the 15 repositories, present in the sources
folder, updated (master branch)
with the latest changes.
If you like the work, please drop a ⭐. Comments and Suggestions are always welcomed. 🤗