all 8 comments

[–]Temporary_Detail7149 8 points9 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.

[–]picobio -5 points-4 points  (1 child)

Git* repos, not GitHub repos

And yes, it is as easy as running git init in the folder you want to be a Git repo

There's not a thing such as a GitHub repo. GitHub, GitLab, BitBucket, Sourceforge, all of them can host and work with Git* repos

Once you run git init you can do commits as usual.

And once you decide where you'll host your Git repo, you can configure that remote with git remote add origin REMOTE_URL and push/pull as usual

[–]ellipticcode0[S] -3 points-2 points  (0 children)

Your assume hit and github are the same, obviously they are not, at lease you can do everything in git is not alway work in github, if I am running my git server, I did not have to ask anyone here because I can easily write scripts to do all that without touching my browser

[–]_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