A simple command-line tool that helps you quickly set up new Git repositories with an interactive prompt. This tool streamlines the process of initializing Git repositories and configuring remotes through an easy-to-use interface.
- 🚀 Interactive command-line interface
- 📁 Initializes new Git repository
- 🔗 Configures remote repository
- 🌿 Sets up main branch
- 📝 Generates README.md template
- 📄 Creates LICENSE file with multiple options
- ⚡ Adds .gitignore with popular templates
- 💡 Provides helpful next steps
Download the latest git-setup.exe
from the releases page.
You can install globally using npm:
npm install -g git-setup-cli
Or run directly using npx:
npx git-setup-cli
The tool provides three main commands:
# Express setup (basic configuration)
git-setup -e
# Manual setup (full configuration)
git-setup -m
# View documentation
git-setup -d
Quick setup with basic configurations:
- Remote name (defaults to "origin")
- Remote repository URL
- Main branch name (defaults to "main")
- Initialize repository option
Complete setup with all configuration options:
- Remote name (defaults to "origin")
- Remote repository URL
- Main branch name (defaults to "main")
- Initialize repository option
- .gitignore template selection
- License type selection
- Project name and description
- Initial commit option
$ git-setup -m
? What is the remote name? (origin)
? What is the remote repository URL? https://github.com/username/repo.git
? What is your main branch name? (main)
? Initialize a new repository? (Y/n)
? Would you like to add a .gitignore file? (Y/n)
? Choose a .gitignore template: Node.js
? Choose a license for your repository: MIT
? What is your project name? my-awesome-project
? Brief project description: An awesome new project
? Create initial commit? (Y/n)
- Node.js (v16 or higher)
- Git installed on your system
- pnpm package manager
# Clone the repository
git clone https://github.com/ApexV2/git-setup.git
# Install dependencies
pnpm install
# Run tests
pnpm test
The project uses Jest for testing. Test files are located in the tests/
directory.
To run tests:
pnpm test
To run tests with coverage:
pnpm test -- --coverage
To build the executable:
pnpm run build
This will create a standalone executable in the dist/
directory.
The project uses GitHub Actions for continuous integration. On each push and pull request to the main branch, it:
- Runs the test suite
- Checks code coverage
- Validates the build process
- Fork the repository
- Create your feature branch (
git switch -c feature/amazing-feature
) - Commit your changes (
git commit -m 'add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Created with ❤️ by ApexV2
This project is licensed under the MIT License. See the LICENSE file for details.