How to completey create a new repo or branch using command line?


I am pretty new to github as in really pushing my stuff up to github.
Now, I know that I can go to my github account Name/ and I can do a manual insert of new repository for my new uploaded stuff.

I’d like to know if it is possible to recreate a new repository in my account via command line ?
Because I try to do it but no matter how I search I can’t find my github URL… it just shows all the projects that I have forked etc.

BTW, I am not sure if repository and branch are the same thing.

Hope someone could advise me.

Thanks alot.

1 Like

Hi @karenworld :wave:

Thanks for asking! Check out this answer from @andreagriffiths11 :tada:

Update to original post

As it turns out, there is a way to do this with GitHub. You can use our CLI tool from the command line to create a repository!

I just tried it out, and I really like how it works.
Here’s the CLI docs on installation:

Here’s how you create the repository :tada:

1 Like

Found this solution.
gh repo create | GitHub CLI
Is it secure,to use these extensions.?