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: 8 months 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.

## **Table of Contents**

1. [Installation](#-installation)
2. [How It Works](#-how-it-works)
3. [Usage](#-usage)
4. [Example Output](#-example-output)
5. [Notes](#-notes)
6. [Contributing](#-contributing)
7. [License](#-license)
8. [Note](#-note)

## **πŸ“¦ 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](https://github.com/theaniketraj/git-setup-ceie?tab=MIT-1-ov-file)

## **πŸ“ 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.