Greg McGuffey
Greg McGuffey

Reputation: 3316

How do I push a new repo to a remote?

Is it possible to "publish" a local repository to a github enterprise server when the repo does not exist yet on the server?

Clarification

There have been some answers about various ways to move a repository to GitHub that all start with "create a repository on GitHub". I was looking for a way to create the repository remotely (i.e. by not going to GitHub). The answer related to using the API was the sort of thing I was looking for conceptually. However, I was hoping a quick easy way to do this and it looks like just going out to GitHub is the best/most efficient method.

Upvotes: 3

Views: 181

Answers (2)

CodeWizard
CodeWizard

Reputation: 141986

Open github account - create new repo and follow the instructions.

REad here how to do it.

https://help.github.com/articles/create-a-repo/

Upvotes: 0

Jonathan.Brink
Jonathan.Brink

Reputation: 25373

You can create the repo using GitHub's REST api.

POST /user/repos

After the repo is created, you can add a remote to it locally and push.

Upvotes: 2

Related Questions