Development using git with write access: Difference between revisions

From Alpine Linux
(Preparing for notes on howto make a new project)
(→‎Create new project: Notes on creating a new git-project)
Line 18: Line 18:


== Create new project ==
== Create new project ==
TODO: How do we do if we need to create a new project?<BR>
Create your own dir that you want to become your new acf-mystuff project.<BR>
Let's say we want a new acf-xyz
Now initiate git.
cd acf-mystuff
git init
Create you 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
 
git clone --bare acf-mystuff acf-mystuff.git
scp -r acf-mystuff.git user@dev.alpinelinux.org


== References  ==
== References  ==
See [[Development_using_git#References]] for references.
See [[Development_using_git#References]] for references.

Revision as of 14:25, 29 June 2009

Note: Unless you are a developer with ssh access (with permissions) you should instead read the article "Development using git"

Personal settings

Start by telling your git who you are and some other useful information ('user.name' will show up in http://git.alpinelinux.org when you commit your changes).

 git config --global user.name "Your Full Name"
 git config --global user.email "your@email.address"

Git Clone

Some examples:

 git clone ssh://username@git.alpinelinux.org/gitroot  (This would fetch all available git projects) 
 git clone ssh://username@git.alpinelinux.org/gitroot/acf-core.git   (Fetch a single project) 
 git clone ssh://username@git.alpinelinux.org/gitroot/pingu.git   (Fetch a single project)

Check http://git.alpinelinux.org/ to see what alternatives you have.
You might not have permissions to clone all existing projects.

Create new project

Create your own dir that you want to become your new acf-mystuff project.
Now initiate git.

cd acf-mystuff
git init

Create you 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

git clone --bare acf-mystuff acf-mystuff.git
scp -r acf-mystuff.git user@dev.alpinelinux.org

References

See Development_using_git#References for references.