Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.85 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.85 KB

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