Your first repository
Repositories are created from the + menu at the top right of every page, or from the New Repository button on your dashboard.
The form
- Owner: you, or one of your organisations.
- Name: becomes the last part of the address,
git.gitza.co.za/you/your-repo. - Visibility: private repositories are visible only to you and the people you add; public ones are readable by anyone. Both are free.
- Initialise repository: adds a README, a
.gitignorefor your language and a licence, so the repository has a first commit. Leave this off if you are about to push an existing project, otherwise the histories will not share a root and the first push is rejected.
Pushing into it
An existing project
From inside the project directory:
git remote add origin git@git.gitza.co.za:you/your-repo.git
git push -u origin mainIf the project already has a remote called origin pointing somewhere else, replace it
instead:
git remote set-url origin git@git.gitza.co.za:you/your-repo.git
git push -u origin --all
git push -u origin --tagsWhat is on a repository page
The tabs across the top are the ones you expect: Code, Issues, Pull Requests, Releases, Wiki, Activity and Settings. Settings is where you add collaborators, protect branches, add webhooks and deploy keys, and change visibility.
Next
Bringing more than one project across? Migrate them rather than repeating this for each.