Clone Organization Repositories easily with one go.
Make sure that you have created Personal Access token which has the required permissions to clone.
- Create Access Token from here
- (Skip if not required)Enable SSO integration with your Org SSO provider
- Careful: Copy/Store Token at your local
-
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)
This project follows a DI approach, wherein implementation will be abstracted.
- Golang - Tool/Language used
Open to fork,clone,issues
- Chaitanya Kumar
This project is licensed under the MIT License - see the LICENSE.md file for details