Skip to content

Commit 3a76f7d

Browse files
Create README.md
1 parent 30b377e commit 3a76f7d

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
# GitHub Starred Repository Cloner
3+
4+
This Python script automates the process of cloning all repositories starred by a GitHub user. Simply provide your GitHub username and Personal Access Token (PAT), and it will fetch and clone the repositories into a local directory.
5+
6+
## Features
7+
- Automatically fetches starred repositories.
8+
- Clones each repository locally.
9+
- Skips already cloned repositories to avoid duplication.
10+
11+
## Requirements
12+
- Python 3.x
13+
- `requests` library (`pip install requests`)
14+
- `GitPython` library (`pip install gitpython`)
15+
- A GitHub Personal Access Token (PAT)
16+
17+
## Installation & Usage
18+
19+
### 1. Clone the Repository
20+
```bash
21+
git clone https://github.com/manupawickramasinghe/clone-github-starred.git
22+
cd clone-github-starred
23+
```
24+
25+
### 2. Install Dependencies
26+
```bash
27+
pip install -r requirements.txt
28+
```
29+
30+
### 3. Configure Your Credentials
31+
Edit `github-clone.py` and set your GitHub username and PAT:
32+
```python
33+
username = 'Enter Your Username'
34+
token = 'Enter Your PAT'
35+
```
36+
37+
### 4. Run the Script
38+
Execute the script to clone starred repositories:
39+
```bash
40+
python github-clone.py
41+
```
42+
43+
## Troubleshooting
44+
- Ensure your PAT has the necessary permissions to read repository data.
45+
- Verify your network connection if cloning fails.
46+
- If repositories already exist, the script will skip them.
47+
48+
## Contributing
49+
Feel free to submit issues or pull requests to enhance the functionality.
50+
51+
## License
52+
This project is licensed under the MIT License.
53+
54+
```
55+
```

0 commit comments

Comments
 (0)