[备忘] 在 git.debian.org 上建立新项目

1. 在 alioth 网站注册[1], 并且申请加入一个特定的组, 比如 chinese 组

[1] http://alioth.debian.org/

[2] http://alioth.debian.org/projects/chinese/

2. 生成自己的SSH密钥

$ ssh-keygen -t rsa

3. 上传公钥($HOME/.ssh/id_rsa.pub) 到 alioth

https://alioth.debian.org/account/editsshkeys.php

4. 登录 git.debian.org

$ ssh git.debian.org -l ALIOTH_USER_NAME

5. 建立 SSH 仓库

lidaobing@vasks$ cd /git/chinese
lidaobing@vasks$ mkdir debian
-zh-faq.git
lidaobing@vasks$ cd debian
-zh-faq.git
lidaobing@vasks$ git
--bare init --shared
lidaobing@vasks$ vi description
lidaobing@vasks$ mv hooks
/post-update.sample hooks/post-update
lidaobing@vasks$ chmod
+x hooks/post-update
lidaobing@vasks$ exit

6. 访问如下的网页确认

http://anonscm.debian.org/gitweb/?p=chinese/debian-zh-faq.git

7. 导入当前的版本

$ mkdir tmp1; cd tmp1
$ dget http:
//cdn.debian.net/debian/pool/main/d/debian-zh-faq/debian-zh-faq_1.11.dsc
$ mkdir debian-zh-faq
$ cd debian
-zh-faq
$ git init
$ git
-import-dsc ../debian-zh-faq_1.11.dsc
$ git remote add origin git
+ssh://git.debian.org/git/chinese/debian-zh-faq.git
$ git push --tags origin master
8. 访问如下的网页确认

http://anonscm.debian.org/gitweb/?p=chinese/debian-zh-faq.git

参考文献:

http://wiki.debian.org/Alioth/SSH

http://wiki.debian.org/Alioth/Git

http://www.cnblogs.com/lidaobing/archive/2010/05/20/debian-packaging-with-git.html

posted @ 2011-06-04 16:59  LI Daobing  阅读(1393)  评论(0编辑  收藏  举报