https://github.com/gusanmaz/clone_gh
clone_gh is a command-line interface that eases the process of cloning repositories, including starred repositories, of a specified user.
https://github.com/gusanmaz/clone_gh
cli cloning git-clone github pip python starred starred-repositories
Last synced: 2 months ago
JSON representation
clone_gh is a command-line interface that eases the process of cloning repositories, including starred repositories, of a specified user.
- Host: GitHub
- URL: https://github.com/gusanmaz/clone_gh
- Owner: gusanmaz
- License: mit
- Created: 2023-03-11T01:23:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-11T01:23:42.000Z (about 2 years ago)
- Last Synced: 2024-04-24T23:40:53.454Z (about 1 year ago)
- Topics: cli, cloning, git-clone, github, pip, python, starred, starred-repositories
- Language: Python
- Homepage: https://pypi.org/project/clone-gh/
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Cloner (clone_gh)
`clone_gh` is a command-line tool that allows you to clone all of your Github repositories, or repositories belonging to any user, into a local directory. You can optionally filter repositories by programming language and specify an output directory for the cloned repositories.
## Installation
To install `clone_gh`, you can use pip:
`pip install clone_gh`
## Usage
### Clone Starred Repositories
To clone all of your starred Github repositories, simply run:
`clone_gh -t clone-likes`
Replace `` with your Github username. This will clone all of your starred repositories into the current working directory.
You can also specify a programming language to filter by:
`clone_gh -t clone-likes -l python`
This will clone only your starred repositories that are written in Python.
You can specify an output directory for the cloned repositories:
`clone_gh -t clone-likes -o /path/to/output/directory`
This will clone all of your starred repositories into the specified output directory.
### Clone User Repositories
To clone all of the repositories for a specific Github user, run:
`clone_gh -t clone-user -u `
Replace `` with the Github username of the user whose repositories you want to clone. This will clone all of the repositories for the specified user into the current working directory.
You can also specify a programming language to filter by:
`clone_gh -t clone-user -u -l python`
This will clone only the repositories for the specified user that are written in Python.
You can specify an output directory for the cloned repositories:
`clone_gh -t clone-user -u -o /path/to/output/directory`
This will clone all of the repositories for the specified user into the specified output directory.
---
If you have a Github access token that you want to use for the API requests, you can provide the file path to the access token file:
`clone_gh -t -a /path/to/access/token/file`
Replace `` with either `clone-likes` or `clone-user` depending on which action you want to perform.
## License
`clone_gh` is licensed under the MIT License. See `LICENSE` for more information.
## Credits
`clone_gh` was created by Güvenç USANMAZ.