Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Streamline your GitHub project setup with ease! This tool automates the initialization of a local Git repository, seamlessly creates a corresponding GitHub repository, and pushes your code with minimal interaction. Perfect for developers looking to save time and standardize their repository creation process.

License

Notifications You must be signed in to change notification settings

kmaqsudi/RepoAutomationTool

Repository files navigation

GitHub Repository Automation Setup

GitHub Repository Automation Setup

Automate repo setup and push with ease!

Main Image

️Table of Contents

Open Contents

About the Project

Streamline your GitHub project setup with ease! This tool automates the initialization of a local Git repository, seamlessly creates a corresponding GitHub repository, and pushes your code with minimal interaction. Perfect for developers looking to save time and standardize their repository creation process.

Showcase

Stack Tech

GitHub Repository Automation Setup

Automate repo setup and push with ease!

license last-commit repo-top-language repo-language-count

<<<<<<< HEAD Python


Introduction

This Python script automates the process of initializing a local project directory as a Git repository, creating a corresponding repository on GitHub, and pushing the local repository to GitHub. It is designed to be user-friendly and efficient, with interactive prompts and automatic dependency handling.

Features

  • Interactive Setup: Prompts for GitHub credentials if not set as environment variables.
  • Automatic Dependency Installation: Checks for and installs required Python libraries.
  • Initializes a local Git repository: Uses main as the default branch.
  • Creates a new repository on GitHub: Supports public or private repositories.
  • Pushes the local repository: Links and pushes your code to the newly created GitHub repository.
  • User-Friendly: Simple and clear interactive prompts.
  • Error Handling: Provides informative error messages for common issues.

Prerequisites

  • Python 3: The script is written in Python 3.
  • Git: Git must be installed on your system.
  • GitHub Account: A GitHub account is required to create repositories.

Installation

  1. Download the create-github-repo-from-local-dir.py script to your project directory.
  2. Make the script executable (optional, but recommended):
    chmod +x create-github-repo-from-local-dir.py

======= GNU%20Bash Python


️Setup

Installation

To install this project, follow these steps:

  1. Bash Version

  2. Download the script to your project directory.

  3. Make the script executable:

    chmod +x create-github-repo-from-local-dir.sh
  4. Ensure you have the necessary dependencies installed:

    • The script will check for curl and jq and prompt you to install them if they are missing.

Python Version

  1. Ensure you have Python installed on your system.
  2. Install the required module:
    pip install requests
  3. Download the script to your project directory.

master

<<<<<<< HEAD

  1. Navigate to your project directory in the terminal.
  2. Run the script:
    python3 create-github-repo-from-local-dir.py
    or if you made it executable:
    ./create-github-repo-from-local-dir.py
  3. Follow the interactive prompts:
    • If the requests library is not installed, the script will ask for your permission to install it.
    • If your GITHUB_TOKEN and GITHUB_USERNAME are not set as environment variables, the script will prompt you to enter them.
    • You will be asked if you want your new repository to be public or private.

A Note on the Shell Script

The create-github-repo-from-local-dir.sh script is now deprecated. The Python script (create-github-repo-from-local-dir.py) is the recommended tool as it is more robust, feature-rich, and user-friendly.


=======

master

Acknowledgements

About the Author

Khalid

This project was created by Khalid. Connect with me on GitHub to learn more about my projects and professional background.

License

This project is licensed under the MIT License.

<<<<<<< HEAD

(Back to top)

master


Built with ❤️ with Document My Project

About

Streamline your GitHub project setup with ease! This tool automates the initialization of a local Git repository, seamlessly creates a corresponding GitHub repository, and pushes your code with minimal interaction. Perfect for developers looking to save time and standardize their repository creation process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •