Cleans up old and inactive forks on your GitHub account.
You'll need to create a personal access token with repo and delete_repo
permissions.
Then, download the latest release and execute the binary as in:
./fork-cleaner --token "my github token"Fork-Cleaner will show you all your forks, you can then check which you want to delete or not on a TUI:
homebrew:
brew install caarlos0/tap/fork-cleanersnap:
snap install fork-cleanerapt:
echo 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install fork-cleaneryum:
echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.dev/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install fork-cleanerdeb/rpm/apk:
Download the .apk, .deb or .rpm from the releases page and install with the appropriate commands.
manually:
Download the pre-compiled binaries from the releases page or clone the repo build from source.