Development using git:Cgit
Create a repository
Create a directory on your local computer or somewhere you have access.
init git and create a first commit
Create a bare repo
Clone it to a bare repo
Set the description
Publish it on git.alpinelinux.org
Set the section and your name for cgit.
Copy the content to the directory ~/cgit on git.alpinelinux.org
We no longer need the local bare repository.
Add upstream source to merge with
If the project you uploaded is a clone of an existing repository (aports for example), add the original source as a git remote repository ("upstream" can be whatever name you want to assign to the remote repository):
Then, to synchronize your local copy with upstream then push your changes (might need to fix merge conflicts if/when they happen):
Git Push (Distributed Workflows)
If working with Distributed Workflows you would 'pull' from public repo, 'push' to another publically accessable repo (where you have write access), main developer (who has write access to public repo) 'pulls' you changes from your pub.accessed.repo into the public repo.
To make it easier for you to work, you can configure 'git push' to push your work to your publically accessable repo ('git pull' would still pull from same repo as you cloned from).
Now 'git pull' pulls the public repo, and 'git push' pushes to your public repo.
Moved from another article
Upload the new project
More details found when reading Publish developer repositories on cgit.