Skip to content

Creating a new remote repo from command line #21675

Discussion options

You must be logged in to vote

Unfortunately, there is no native git command to create a new GitHub repo.  However, not all is lost.  GitHub maintains a command-line wrapper for git called hub which conveniently allows you to create a new GitHub repository from the CLI:

git **create -d "\<commit name\>"**

This will create a new repository called whatever the current directory is named.  If you’re interested, you can find out more about hub here.

I hope that helped!

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants