Create a remote reset via the command line

Asked

Viewed 24 times

-2

Is there such a possibility on a server like Github for example? If so, how could I do that?

  • 1

    Hello, start by taking a look at content like this, is not something simple will require you much study and dedication

1 answer

1


You can do this using the Github API

The first step would be to create an access token. To do this, you can follow the instructions on this page:

https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line

With access token, you can create a new repository using Curl. An example:

curl -H "Authorization: token ACCESS_TOKEN" --data '{"name":"NEW_REPO_NAME"}' https://api.github.com/user/repos

Here’s a Stackoverflow link with other examples:

https://stackoverflow.com/questions/28385884/how-to-create-repository-in-github-through-github-api

And the documentation link:

https://developer.github.com/v3/repos/#create

Browser other questions tagged

You are not signed in. Login or sign up in order to post.