This script automates the process of creating a new repository. Therefore, the following steps are executed:
- Start the script with your repository name as the first argument
- It validates if there is already a local repository or a Github repository. If this is the case the script will show an error message.
- A new initial repository is created in your Github account
- A new local repository is initialized in your repository base path (config)
- A readme is created with the repository's name as title.
- The changes are committed.
- The changes are pushed to the main branch to synchronize the local and the upstream repository.
PyGithub is used to handle operations regarding Github.
- Clone the repository
- Create your GitHub authorization token and grant all permissions regarding repositories
- Rename the
params_example.txt
toparams.txt
- Add your GitHub authorization token in
params.txt
- Add your local path where all your repositories shoud be saved in
params.txt
- Install all required dependencies executing
pip install -r requirements.txt
- Execute the script running
python main.py
If you have found a bug or want to request a new feature please feel free top open a new issue.