Git Hosting
From openSUSE
Dirkmueller (Talk | contribs) (dmacvicar is on vacation, fill in own email address) |
Buschmann23 (Talk | contribs) m (added link to german wiki) |
||
| Line 68: | Line 68: | ||
git clone git@git.opensuse.org:projects/$repo.git | git clone git@git.opensuse.org:projects/$repo.git | ||
(or git@git.opensuse.org:people/$yourlogin/$repo.git ) | (or git@git.opensuse.org:people/$yourlogin/$repo.git ) | ||
| + | |||
| + | [[de:Git Hosting]] | ||
Current revision as of 13:05, 31 October 2009
Contents |
git Hosting
git is distributed, therefore you don't need a server. But if you want to collaborate, you will need some place where to publish your repository. (Does not need to be just one place, you can push to multiple places).
For personal projects
- Github. Lot of social and collaboration features.
- repo.or.cz. First public git hosting.
- Otherwise look here
openSUSE.org projects
We provide git repositories for some openSUSE.org related projects for which the size can be handled with our current resources.
Please send an email to dmueller at suse (.de) for information.
Web Access
This is a short explaination how to use git on opensuse.org
repos have the form people/$yourlogin/$repo.git or projects/$repo.git
| Please mind the difference in the path between anonymous and authenticated urls. One has a /, the other has a : |
Set your git user information correctly
To avoid commits with incorrect emails or usernames, please configure your git.
git config --global user.name "Your Name Comes Here" git config --global user.email you@yourdomain.example.com
You can omit --global if you plan to configure that only for the repo you are standing on.
Checking your ssh key
If you are not using anonymous access, make sure the ssh key of your workstation is the one you have to the git.opensuse.org administrator. Otherwise configure ssh to send that key.
So if you have if_thekey.pub to the administrator, setup:
# ~/.ssh/config Host git.opensuse.org IdentityFile ~/.ssh/id_thekey
If you gave the default key (id_rsa.pub or id_dsa.pub) you don't need to change anything.
Local repository: first push to opensuse.org
git remote add origin git@git.opensuse.org:projects/$repo.git git push origin master:refs/heads/master
Will push and create your repository the first time.
Existing opensuse.org repository: first clone to local
Anonymous clone:
git clone git://git.opensuse.org/projects/$repo.git (or git://git.opensuse.org/people/$yourlogin/$repo.git )
Authorized clone:
git clone git@git.opensuse.org:projects/$repo.git (or git@git.opensuse.org:people/$yourlogin/$repo.git )

