https://github.com/theaniketraj/git-setup-ceie
Automating Git Repository with structured branches.
https://github.com/theaniketraj/git-setup-ceie
branching-strategy developer-tools git git-automation git-branching-workflow git-setup git-workflow npm-package version-control workflow-automation
Last synced: about 1 month ago
JSON representation
Automating Git Repository with structured branches.
- Host: GitHub
- URL: https://github.com/theaniketraj/git-setup-ceie
- Owner: theaniketraj
- License: mit
- Created: 2025-02-22T05:39:24.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-02-25T23:38:17.000Z (about 2 months ago)
- Last Synced: 2025-03-17T04:40:03.480Z (about 1 month ago)
- Topics: branching-strategy, developer-tools, git, git-automation, git-branching-workflow, git-setup, git-workflow, npm-package, version-control, workflow-automation
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/git-setup-ceie
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CEIE - Automated Git Repository Setup
## π Introduction
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.## π¦ Installation
To install CEIE globally, run:
```sh
npm install -g git-setup-ceie
```Or, use it directly via `npx`:
```sh
npx git-setup-ceie
```## β‘ How It Works
This tool performs the following automated actions:
1. Initializes a Git repository (`git init`).
2. Checks if a remote origin exists; if not, prompts the user to enter a repository URL.
3. Creates an initial commit with a `README.md` file.
4. Sets up the following branches:
- `main`
- `controlled-environment`
- `isolated-environment`
5. Pushes all branches to GitHub and sets up tracking.## π Usage
Run the command in your project directory:
```sh
npx git-setup-ceie
```
You will be prompted to enter the repository URL if it isn't set up already.## π€ Example Output
```sh
π 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!
```## π Notes
- 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.## π€ Contributing
Contributions are welcome! Feel free to submit issues or PRs.## π License
MIT License.## π Note
This project serves as the **foundation for [CEIE](https://github.com/theaniketraj/ceie)**, ensuring a streamlined and structured Git setup process. However, `git-setup-ceie` will remain **independent and fully functional**, retaining all **npm commands** indefinitely.