Git API call on Github account on government Organization

74 Views Asked by At

Trying to creae a remote repo regular github account with below command

$ curl -u 'USER':'TOKEN' https://api.github.com/user/repos -d '{"name":"REPO"}'

this works fine.

If my github account is in government org. say https://github.xyz.gov then

$ curl -u 'USER':'TOKEN' https://api.github.xyz.gov/user/repos -d '{"name":"REPO"}'

gives below error,

Could not resolve host: api.github.xyz.gov

Trying to create at user level, I also need to create repo on Organization level apart from user level later. What is issue here.

0

There are 0 best solutions below