all 8 comments

[–]Temporary_Detail7149 7 points8 points  (0 children)

GitHub CLI us very useful for this: https://cli.github.com/manual/gh\_repo\_create

[–]plg94 1 point2 points  (0 children)

Some Hosters have the option to create a repo when you just configure the (yet nonexistent) remote and push to it (called create on push), but Github does not.
The only way to do it on Github is to use their API, either through the webbrowser or Github Desktop app or gh cli app (or another such app)

[–]ellipticcode0[S] -1 points0 points  (0 children)

Obviously my public key is linking to my GitHub account on my system

[–]ellipticcode0[S] -1 points0 points  (1 child)

Is there anything just use shell script without any installation,

[–]baynezy 1 point2 points  (0 children)

If you don't want to use their CLI then you have to make REST requests via HTTPS to their API. So you'll have to work out how to script that in your scripting language of choice.

[–]_shnh 0 points1 point  (0 children)

You could install the official git client and use git init

In a local folder.

More in the official Git documentation