This repository contains a powerful shell script designed to simplify the creation and initialization of GitHub repositories. It is an integral part of the Shell Utils, one of the most extensive collections of scripts and utilities aimed at improving user productivity and ease of use.
- Multilingual support for prompts and messages: Portuguese, French, German, Romanian, and English.
- Dependency checks for Git and GitHub CLI (gh).
- Automatic configuration of GitHub credentials.
- Validates repository descriptions with character limits and acceptable formats.
- Creates repositories locally and on GitHub, complete with initial commits.
- Configurable global Git settings through a custom configuration file.
- Clone the repository:
git clone https://github.com/felipefacundes/repo_git_gen.git
- Navigate to the script directory:
cd repo_git_gen
- Ensure the script is executable:
chmod +x repo_git_gen
Run the script with the following syntax:
./repo_git_gen <repository_name>
Replace <repository_name>
with the desired name for your new repository.
./repo_git_gen my_project
This will:
- Check for necessary dependencies (Git and GitHub CLI).
- Prompt for GitHub authentication if not already configured.
- Create a new repository directory locally and initialize it.
- Push the repository to GitHub with the specified name.
- Git must be installed.
- GitHub CLI (gh) must be installed and configured.
- Linux or macOS environment (compatibility may vary with other systems).
For more information, explore the Shell Utils.