DEV Community

rndmh3ro
rndmh3ro

Posted on • Originally published at zufallsheld.de on

TIL how to create Github repos with Github

I needed to create multiple Github repositories and grant access to them for different users. After creating the first repository by hand and granting access to it, I had enough of it. There are just too many damn clicks!

So I used the CLI. Github has a nice cli-program called gh. With it you can easily create new repositories:

gh repo create --public user/repo

Enter fullscreen mode Exit fullscreen mode

Adding collaborators to the repository was a little bit harder since gh does not provide an easy way to do this. However you can easily talk to the REST-API with gh:

gh api --method=PUT repos/user/repo/collaborators/rndmh3ro -f permission=admin

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more