GitHub 仓库批量删除
Github 仓库不支持批量删除,需要一个一个手动删除,如果项目少还好,但是项目多了,删起来就很麻烦,这个工具就是使用Selenium框架,自动化删除GitHub仓库。
项目地址:https://github.com/wang-y/github-batch-delete
使用方法
- 使用 git clone https://github.com/wang-y/github-batch-delete.git 下载项目
- 将项目导入 IDE
- 根据电脑的系统及chrome版本,在 http://chromedriver.storage.googleapis.com/index.html 中寻找对应的Driver
- 下载后将解压出来的chromedriver文件放入resources/driver目录下
- 对应系统分别修改名称:Windows: chromedriver.exe, MacOS: chromedriver_mac, Linux: chromedriver_linux
- 修改application.yml的配置
github:
username: username # 用户名
password: password # 密码
repositorys: repo1,repo2,repo3 # 仓库名称,使用','分割
#Windows系统请维护chrome安装路径
chrome:
win:
bin: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
- 执行Application.java中的 main() 方法即可。