An open API service indexing awesome lists of open source software.

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.

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.