Skip to content

Instantly share code, notes, and snippets.

View ShaliniSJ's full-sized avatar
🎯
Focusing

Shalini S ShaliniSJ

🎯
Focusing
View GitHub Profile
@HaythmKenway
HaythmKenway / PrivateorDelete.md
Last active May 11, 2023 12:38
A bit of automation in removing and changing privacy of Github Repos

Hey today i was going through my github profile and noticed i have created hell a lot of useless github repos simply spamming in my profile

So today i have decided to eradicate all those useless stuffs using gh cli and bash

yeah i could have simply used curl command to do so but, i have never used ghcli in action so wanted to give it a try

for simplicity let us declare username as variable

username=<YOUR-GITHUB-USERNAME>

step 1: