RepoLauncher is a productivity tool designed to streamline the process of initializing, creating, and pushing local Git repositories to GitHub. It automates the tedious steps of setting up a new project, allowing you to focus on coding.
- Automatic Git Initialization: Checks if a Git repository exists and initializes one if needed.
- GitHub Repository Creation: Automatically creates a repository on GitHub using your Personal Access Token.
- Supports creating both Public and Private repositories.
- Handles existing repositories gracefully.
- Smart Push: Automatically adds a remote origin and pushes your current branch (detects
main,master, etc.) to GitHub. - Path Support: Can be run from anywhere to target a specific project directory.
- Dependency Management: Built with
uvfor fast and reliable Python package management.
- Python 3.12+
- uv (An extremely fast Python package installer and resolver)
- A GitHub Personal Access Token (Classic) with
repopermissions.
- Clone or Download this repository.
- Install Dependencies:
uv sync
- Configure Environment:
- Copy
.env.exampleto.env:(On Windows:cp .env.example .env
copy .env.example .env) - Open
.envand paste your GitHub Personal Access Token:GITHUB_TOKEN=ghp_your_token_here
- Copy
Run the tool using uv run:
uv run main.pyuv run main.py /path/to/your/projectuv run main.py /path/to/your/project --private- Scans the target directory.
- Initializes
gitif not already present. - Creates a repository on GitHub with the same name as the directory.
- Links the local repository to the remote GitHub repository.
- Commits any uncommitted changes (with a default message).
- Pushes the current branch to GitHub.
MIT