Fork Amanda on Github

From The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC)

Revision as of 20:07, 28 July 2014 by Nathanst (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Where Amanda has its sources

SVN: the reference source repository

[If you ARE an SVN committer and wish to use Git to clone/pull/push (resp. checkout/update/commit in SVN parlance) to the SVN repository, jump to the "Using git to clone the SVN repository" section below. This page WILL NOT give you any help on using SVN, tutorials are aplenty on the World Wi{de,ld} Web]

The reference Amanda source repository uses SVN. The base SVN URL is:

(To use the Sourceforge system browse the SVN repository over the web, you can use .)

However, unless you are a commiter, you'll ever only have a read access to it. Otherwise you're better off starting with...

Git: never far behind

... The git repository on GitHub. This git repository is, at worst, less than an hour behind the SVN repository. Its URL is To clone it, just:

git clone git://

and you will have your own personal Amanda clone.

Should you choose to fork the repository using GitHub (see below) so that you can work on it and submit branches for review, follow the relevant instructions on GitHub and jump straight to the section "Adding remotes" below.

Using git to clone the SVN repository

For some time now, Git has had quite a complete interface to interact with SVN. However, both source control systems being quite different in their innards, SVN will only be a second class citizen in the Git world.

Which doesn't prevent you from working with SVN, first of all by cloning the entire SVN repository (this operation is VERY long):

git svn clone -s --prefix=svn/

When this command is completed, you will have a complete SVN clone just as if you had svn cloned the repository.

Git will also have created a master branch following SVN's trunk, but let's rename it to trunk:

git branch -m master trunk

Now, if you wish to develop using git, the best is still to base your work on GitHub's repo instead, so add this repository - or rather, this remote:

Adding remotes

A remote, in git parlance, is the URL to another git repository, from which you can fetch/merge/pull changes (and, if it's yours, push changes as well). And, as git is smart in everything it does, adding remote after remote won't make your git repository grow immense: only the objects you don't have will be downloaded from that remote.

If you have chosen to git svn clone the repository to start with, you will want to add GitHub's main repository. Here is how you do it:

git remote add origin git://

You may also want to add other remotes pointing to other Amanda developers' git branches, for instance:

git remote add djmitche git://

and so on. If you have created your own fork on github, provided your username on github is xxxx, you will want to add your own remote as well:

git remote add xxxx

Once you have added all your remotes (and note that nothing prevents you from adding more further on), fetch changes from them:

git fetch --all

Now, unless you have chosen to clone directly from github, you won't have a master branch, create it:

git branch master origin/master

And check it out:

git checkout master

You are now ready to hack!

More information

Github has a great guide to help you out. The github guides also provide a great resource for learning about git.

Personal tools