Creating a repository

A repository is created on the /new page — owner, name, description, visibility and, if needed, a README and .gitignore. The other way is git push into an empty repository from your computer.

Updated Copy as Markdown
In this article

In the browser#

  1. Open the create page — it is also behind the + button next to «Repositories» in the menu.
  2. Owner — you or an organization. In an organization a repository can be created by whoever is allowed to in the member privileges.
  3. Repository name — Latin letters, digits and hyphens. The form checks the name as you type: «Name is available» or that such a repository already exists.
  4. Description — optional.
  5. Visibility — public or private, picked from a list. You can change it later in the settings.
  6. Add a README and Add .gitignore — off by default, as on GitHub. Without them the repository is created empty, and instead of files the page shows ways to fill it.
  7. Create repository.

From your computer#

If the project is already on your disk, create an empty repository (without a README) and push your local history into it. The Code button on the repository page shows ready commands under Push to an empty repository. In detail — Clone and push.

An empty repository#

An empty repository offers three ways: create a file in the browser, upload ready files from your computer or run git push. Any of them creates the first branch, main.

Was this helpful?