Git Product home page Git Product logo

github-forks-delete's Introduction

github-forks-delete

🍴该项目使用Node和Shell来批量删除github的项目

💻刚开始玩Github随手fork了很多项目,毕竟那时年轻啊,前几日整理发现已经fork了几百项目,想着删除一批,然而手动删了十来个就抓狂了,Github删除项目的步骤也太多了,抱着试试看的心态找了几个项目,测试下来只有Peripona/bulk-clean-repos成功了,再次感谢下作者!

步骤:

  1. 打开fetchSaveRepo.js,修改repoUrl为自己的url
  2. 执行node fetchSaveRepo.js来生成自己的项目列表到repos.txt
  3. 生成一个拥有删除项目权限的Authorization Token
  4. 修改deleteRepos.sh文件中对应*******************为生新成的token
  5. 执行./deleteRepos.sh

注:

  • 删库需谨慎,建议动手前做项目备份:bomb:
  • 如果运行中报错请按照提示安装相应模块
  • 如果想保留部分项目,可以将不想删除的项目从生成的repos.txt文件列表中移除即可,如果项目过多,后续每次执行生成项目目录前记得清空repos.txt
  • 测试环境:macos+node

github-forks-delete's People

Contributors

abitlong avatar justwyl avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

awamwang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.