1.1.0 • Published 4 months ago

create-local-repo v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Git Repo Script

This script automates the process of initializing a local directory as a Git repository and linking it to an existing GitHub repository.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have Node.js and npm installed on your system.
  • You have Git installed and configured on your system.

Installing Git Repo Script Globally

To install the script globally on your machine, run the following command:

npm install -g create-local-repo

Once installed, you can run the script from anywhere on your system by simply typing:

create-local-repo

Using Git Repo Script Without Installation

If you prefer to run the script without installing it globally, you can use the npx command. Navigate to the directory where you want to initialize your repository and run:

npx create-local-repo

Press enter when it asks to install the package. This will install and execute the script once then it will automatically unistall it.

How to Use

Before using the script, make sure you have created an empty repository on GitHub. Do not initialize the repository with a README, .gitignore, or license. The script will add a README.md and .gitignore file if one is not present.

After installing, run create-local-repo and follow the on-screen prompts. Enter the GitHub repository URL when asked, and if you want to use the current directory, just press Enter when prompted for the repository path.

Support

If you have any issues or questions, please open an issue on the GitHub repository.

1.1.0

4 months ago

1.0.1

7 months ago

1.0.0

7 months ago