easton36 / autogit

Python script to clone/update all projects from git to the local device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoGit

This Script clones or updates all repositories that the authenticated user has access to, including public, private, and organization repositories. The repositories are organized into separate folders based on the owner (organization or user) in the destination directory.

Python Version

Dependencies

You can install these dependencies using the following command:

pip install GitPython requests

Node.js Version

Dependencies

You can install these dependencies using the following command:

npm install

Setup

  1. Generate a GitHub personal access token:

    • Go to https://github.com/settings/tokens
    • Click "Generate new token"
    • Give your token a name and check the necessary scopes, e.g., repo, user
    • Click "Generate token" and copy the generated token
  2. Replace the placeholder values in the script:

    • Replace 'your-personal-access-token' with your generated GitHub personal access token
    • Replace 'path-to-destination-directory' with the path to the directory where you want to clone or update the repositories

Usage

Simply run the script:

Python Version

python autogit.py

Node.js Version

npm start

The script will clone or update all repositories that the authenticated user has access to and organize them into separate folders based on the owner (organization or user) in the destination directory.

License

This project is licensed under the MIT License.

About

Python script to clone/update all projects from git to the local device


Languages

Language:JavaScript 53.7%Language:Python 46.3%