Home Development Repositories
Repositories PDF Print
Written by Administrator   
Thursday, 05 November 2009 02:41

Accessing repositories

Currently all Lisaac's related Git repositories are hosted by Alioth, the collaborative development environment of Debian.
These repositories are accessible by git using sftp, rsync over ssh, or git-server/http for read-only access. For instance, you'll be able to check theses branch through sftp with :

$
$ # Git clone for registered users at Alioth
$ # SFTP git protocol
$ git clone ssh://'USER'@git.debian.org/git/lisaac/'PROJECT'.git
$

Anonymous users will enjoy read-only access with following commands :

$
$ # Git clone for anonymous users
$ # Native git protocol
$ git clone git://git.debian.org/git/lisaac/'PROJECT'.git
$ # HTTP git protocol
$ git clone http://git.debian.org/git/lisaac/'PROJECT'.git
$

Please use the native git protocol, beacause it is much more efficient than cloning over http. If your firewall restricts access to port 9418 you could clone over http. But notice that if the upstream repo on alioth is repacked, you have to download the whole objects again if clone/fetch over http.

You can also with using Gitweb, browse directory trees at arbitrary revisions, view contents of files (blobs), see log or shortlog of a given branch, examine commits, commit messages and changes made by a given commit :

$
$ # Open the follwing link with your favorite web browser (Firefox :)
$ firefox http://git.debian.org/?p=lisaac/'PROJECT'.git
$
In the above commands "PROJECT" refers to various projects such as "compiler", "documentation", etc. You can find the full list HERE.

Not familiar with Git ?

If you have never used Git, you may be interested to have some documentation :

Below you will find some useful commands for an everyday SVN / GIT :

SVN GIT
svn checkout url git clone url
svn commit -m <message> git commit -a -m <message>
git push
svn update git pull
svn update -r <rev> git checkout <rev>
svn (add | rm | mv) <file> git (add | rm | mv) <file>

Last Updated on Tuesday, 10 November 2009 14:42