https://github.com/bebehei/fork-cleanup
Cleanup your unneccessary Github forks and gain overview.
https://github.com/bebehei/fork-cleanup
Last synced: 7 months ago
JSON representation
Cleanup your unneccessary Github forks and gain overview.
- Host: GitHub
- URL: https://github.com/bebehei/fork-cleanup
- Owner: bebehei
- License: mit
- Created: 2016-02-21T12:00:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T12:13:53.000Z (over 9 years ago)
- Last Synced: 2025-03-06T11:03:27.857Z (about 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fork-cleanup
Remove your unneccessary forks from github
A [blogpost on medium.com](https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45) gave me the idea to do this in a more safe and easier way.
Requires python 3
# How to run it
- pip3 install --user PyGithub
- git clone https://github.com/bebehei/fork-cleanup && cd fork-cleanup
- cp credentials.txt.template credentials.txt
- $EDITOR credentials.txt
- You have to fill **either**:
- `AUTH_TOKEN`
- `AUTH_USER` and `AUTH_PASS`
- [If you want to generate a token, you have to create in you profile settings a new one.](https://github.com/settings/tokens) This token has to have the `delete_repo` scope.
- ./cleanup
- If you're not sure about this, you can also use the `--dry` option.
- The `-v` option is also useful.
# Two Factor Auth
If you use two factor auth, you have to use a token. Any other possibility won't work.