I tried to searched the google but didn't get any clue about this. If i can use git command to create a new repo on github, so i dont have to open github website and click to create a repo,it will be easier to use.
Asked
Active
Viewed 45 times
-1
-
1There is no *Git* command that can create a repository *on GitHub*, but there is a *GitHub* command (`gh`), as in [GMB's answer](https://stackoverflow.com/a/72334369/1256452). – torek May 22 '22 at 04:27
-
yes.anyway.I want use command to create github repo.It helps alot .Thank u also.I`ll change the question to right . – q2333 May 22 '22 at 15:46
-
I hope anyone who vote down could tell me the reason .so i can improve the question. – q2333 May 22 '22 at 15:47
1 Answers
4

GM8
- 64
- 1
-
1it really worked!.thank u !BTW,when we using this command it says,`--public`, `--private`, or `--internal` required when not running interactivel.we should add --public command,such as: '''gh repo create [test_gh_cli] --public''' – q2333 May 22 '22 at 14:15