π§ Your Complete GitHub Workflow Automation Tools (For Windows CMD)
CGit is a custom batch script that automates the initial GitHub repository creation and first commit push β all from your local terminal.
- Creates a new private/public GitHub repository
- Automatically adds a
README.mdand.gitignore - Initializes Git locally
- Links to GitHub remote
- Pushes everything with one command
PGit is your post-creation workflow tool. Think of it as the companion to CGit, made to handle regular updates to your repositories.
- Checks for remote changes (
git fetch) - Prompts you before pulling
- Adds & commits your local changes
- Pushes updates to GitHub safely
Place both cgit.bat and pgit.bat in a permanent directory. For example:
C:\Scripts\GitTools
- Press
Win + S, search for "Edit the system environment variables" - Click "Environment Variables"
- Under System Variables, select
Path, click Edit - Click New, paste your script folder path (
C:\Scripts\GitTools) - Hit OK on all dialogs
You're done. You can now use cgit and pgit from any terminal.
- Place your project in a folder (or create one)
- Open CMD in that folder
- Run:
cgit- Fill in the prompts and let the magic happen.
After making changes to your repo:
- Open CMD in the project folder
- Run:
pgit
- Follow the prompts to pull (if needed), commit, and push.
- Ensure Git is installed and configured (git config --global user.name etc.)
- Ensure that you have GitHub CLI installed and authenticated.