Quickly create a public repository on GitHub with just one command while starting a project.
- Clone the MakeItOpenSource project.
- Rename
config.example.py
toconfig.py
- Obtain a personal access token for your GitHub account.
Creating a Personal Access Token for the Command Line - Add your access token to
config.py
- Open the terminal and navigate to your project directory (the one you want to make open source).
- Run the Python script
main.py
with the command:
python FULL_PATH_TO_MAKE_IT_OPEN_SOURCE/main.py
- Provide the repository name (the project folder name is the default), repository description (optional), and confirmation to initialize and add remote.
- Use the 'q' argument for quick repository setup with default values:
python FULL_PATH_TO_MAKE_IT_OPEN_SOURCE/main.py q
For Ubuntu or MacOS (on .zshrc or .bashrc):
If using Zsh shell (.zshrc).
alias mios="python /path/to/MakeItOpenSource/main.py"
If using Bash shell (.bashrc).
alias mios="python /path/to/MakeItOpenSource/main.py"
For Windows, you need to setup Environment Variable.
Now you can simply use mios
or mios q
for quick repository setup.
Please let me know if you have any queries, feedback, or suggestions.