Development using git with write access: Difference between revisions

From Alpine Linux
(minor cleanup)
m (Fix double redirect)
Tag: Redirect target changed
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This document is for developer who has ssh login and write access to the git repositories.
#REDIRECT [[Git]]
 
== Personal settings ==
Unless you already done so, start by setting up name and email address for the git commits.
 
{{Cmd|git config --global user.name "Your Full Name"
git config --global user.email "your@email.example.com"}}
 
== Git Clone ==
Some examples:
 
{{Cmd|git clone ssh://username@git.alpinelinux.org/gitroot/acf-core
git clone ssh://username@git.alpinelinux.org/gitroot/pingu}}
 
== Git Tag ==
Create an annotated tag and push it.
 
{{Cmd|git tag -a ''tagname'' -m'commit message (e.g release 1.x)'
git push && git push --tags}}
 
== Create new project ==
Create your own dir that you want to become your new acf-mystuff project.
{{Cmd|mkdir|acf-mystuff
cd acf-mystuff
git init}}
 
Create your files and add/commit them to your git-project
{{git add ./
git commit}}
 
{{Note|You can add/modify/commit as much as you want before uploading it to git.alpinelinux.org}}
 
=== Upload the new project ===
{{Cmd|<nowiki>cd ..
git clone --bare acf-mystuff acf-mystuff.git
scp -r acf-mystuff.git user@dev.alpinelinux.org:</nowiki>}}
 
Notify a user with access on git.alpinelinux.org to move it to /gitroot (or create a symlink) and update the /etc/cgitrc config to make it visible on cgit.

Latest revision as of 06:37, 20 November 2024

Redirect to: