https://github.com/hiroakis/cloner
https://github.com/hiroakis/cloner
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiroakis/cloner
- Owner: hiroakis
- Created: 2016-02-09T11:48:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T01:41:30.000Z (over 2 years ago)
- Last Synced: 2025-02-14T16:39:48.857Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloner
cloner is a simple tool to clone all of the github repositories in specified organization, inspired by https://gist.github.com/tagomoris/1394916845a1b8020e43
## Use case
When you join to new team/company which uses github, you can clone all of repositories easily.
## Installation
Just go get
```
go get golang.org/x/oauth2
go get github.com/google/go-github/github
go get github.com/hiroakis/cloner
```
or build
```
git clone git@github.com:hiroakis/cloner.git
cd cloner
make
```
## Usage
* basic usage
All of the repository will be cloned to the current directory. Note, the tool requires git command, so you have to install git to your machine.
```
cloner -token YOUR_GITHUB_API_TOKEN -org TARGET_ORGANIZATION_NAME
```
* options
```
-token The github access token. The token should have "repo" scope. REQUIRED.
-org The organization name. REQUIRED.
-type The type of the repository. "private" or "public". OPTIONAL(default: private)
-page The page num. OPTIONAL(default: 1)
-per The number of results to include per page. OPTIONAL(default: 100)
```
## License
MIT