This project is to showcase how to clean all the repos from a git repos using shell and node
curl -s https://api.github.com/users/peripona/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["clone_url"]} ]}'
- Open
fetchSaveRepo.js
and update your repos url node fetchSaveRepo.js
- Generate a Authorization Token for repo delete access token
- Copy the token and put in in place
xxx
indeleteRepos.sh
./deleteRepos.sh
You can also not delete some repos by removing its name from
repos.txt
if you want to keep those projects.
- You on mac
- Your github repo link
- Node Js installed on system
- Git Authorization token
Tested with my repo on mac.