- Create an empty git repository
$ mkdir program
$ cd program
$ git init --shared
- Unpack upstream sources into the git repository
- Import upstream into git
$ git add .
$ git commit -a -m "Adding upstream version version
."
$ git tag -a -m "Tagging upstream version version
." upstream/version
- Create upstream branch (by renaming master)
$ git branch -m master upstream
- Import pristine-tar delta
$ pristine-tar commit -m "Adding pristine-tar version version." ../program_version.orig.tar.gz
- Create and switch to debian branch
$ git checkout -b debian
- Prepare bare git repository
$ cd ..
$ git clone --bare program program.git
$ cd program.git
- Add gitweb description
$ echo "project/program" > description
- Add commit notifiers (cia and mailinglist)
$ cat >> config << EOF
[hooks]
cia-project = ciaproject
mailinglist = changeslist@lists.alioth.debian.org
EOF
$ mv hooks/post-receive hooks/post-receive.orig
$ cat > hooks/post-receive << EOF
#!/bin/sh
exec /usr/local/bin/git-commit-notice
EOF
$ chmod 0755 hooks/post-receive
$ cd ..
- Upload git repository to alioth
$ scp -r program.git username@alioth.debian.org:/git/project
- Remeber to make sure that the files on alioth do have read-write permissions for your alioth group.