CEIE automates Git repository initialization by setting up structured branches and linking your repository to GitHub seamlessly. This tool simplifies the process, ensuring a well-defined workflow.
To install CEIE globally, run:
npm install -g git-setup-ceie
Or, use it directly via npx
:
npx git-setup-ceie
This tool performs the following automated actions:
- Initializes a Git repository (
git init
). - Checks if a remote origin exists; if not, prompts the user to enter a repository URL.
- Creates an initial commit with a
README.md
file. - Sets up the following branches:
main
controlled-environment
isolated-environment
- Pushes all branches to GitHub and sets up tracking.
Run the command in your project directory:
npx git-setup-ceie
You will be prompted to enter the repository URL if it isn't set up already.
🚀 Initializing Git repository...
🔍 Checking if remote origin exists...
✅ Remote origin already exists.
📄 Creating an initial commit...
✅ Initial commit created.
✅ Creating and switching branches...
🔀 Switching back to 'main' branch...
📤 Pushing branches to GitHub...
🎉 Git repository is fully set up and pushed to GitHub!
- If a repository is already initialized, it won’t be reinitialized.
- If branches exist, they won’t be recreated.
- If the remote origin exists, it won’t prompt for a URL.
Contributions are welcome! Feel free to submit issues or PRs.
This project serves as the foundation for CEIE, ensuring a streamlined and structured Git setup process. However, git-setup-ceie
will remain independent and fully functional, retaining all npm commands indefinitely.