https://github.com/mimo84/cloner
A simple script that downloads repos you have access to in Bitbucket / GitHub
https://github.com/mimo84/cloner
bitbucket bitbucket-api clone git github github-api repository repository-tools
Last synced: 8 months ago
JSON representation
A simple script that downloads repos you have access to in Bitbucket / GitHub
- Host: GitHub
- URL: https://github.com/mimo84/cloner
- Owner: mimo84
- License: mit
- Created: 2020-11-18T00:32:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T23:12:00.000Z (almost 5 years ago)
- Last Synced: 2023-03-12T07:33:40.918Z (almost 3 years ago)
- Topics: bitbucket, bitbucket-api, clone, git, github, github-api, repository, repository-tools
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bitbucket / Github Cloner
A simple script to download repos from bitbucket (mostly) and github.
If the repository already exists the repository will just be updated if possible via git pull.
## bitbucket.sh
jq is a dependency: https://stedolan.github.io/jq/
### usage:
```
bitbucket.sh username:password
```
### result:
it will create a bitbuckt_repos folder above the script itself and a number of subfolders
depending on your own bitbucket structure.
Inside each folder your repos are going to be cloned.
Inspired by this: https://stackoverflow.com/questions/40429610/bitbucket-clone-all-team-repositories
## github.sh
### usage:
```
github.sh username
```
### result:
it will create a github_repos above the script itself and clone all the public repos of that user.