Created
September 20, 2019 20:45
-
-
Save VladRez/83a7b07146732f2a3ad6fbe9ed797f67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repos=(repo1 repo2 repo3 etc) | |
for i in "${repos[@]}";do curl -X PATCH -H "Authorization: token YOURTOKEN" https://api.github.com/repos/YOURUSERNAME/$i -d '{"private":true}';done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment