Skip to content

Golang tool to simply pull all your organization repos using Access token

License

Notifications You must be signed in to change notification settings

chaitanyak59/Clone-Organization-Repos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Clone

Clone Organization Repositories easily with one go.

Getting Started

Make sure that you have created Personal Access token which has the required permissions to clone.

Prerequisites

Installing

  • Golang is installed

  • Clone this Repo

  • Open .env in root folder

  • (Important) About Environment Variables

    Name #Usage
    GITHUB_ORG_API Github API link (Do not change, unless required)
    ACCESS TOKEN (Mandatory)Replace with your Access Token here, obtained from initial steps
    GITHUB_USER_NAME Provide your Github Username
    DESTINATION_DIRECTORY (Mandatory)Give path of the Directory for cloning repos
    ORGANIZATION Provide Github Organization Name
    IGNORE_REPOS (Optional)Skip Repos which are not required
    IGNORE_FORK_REPOS Skip Cloning Forked Repos
  • Update .env file with your values

  • Open terminal from this repo directory

    Run >> go run main.go
    
  • Watch Output for Status

  • Process may take time, (Depends on your network speed and total repos in your org)

Sample Output

SampleOutout

Coding Format

This project follows a DI approach, wherein implementation will be abstracted.

Built With

Contributing

Open to fork,clone,issues

Authors

  • Chaitanya Kumar

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Golang tool to simply pull all your organization repos using Access token

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published