Back to Guides
Last modified: Tue April 11 2017 - 18:54:20 (CEST)

AFEM Software Package

How to get access to the AFEM repository?

If you want to get access to a repository, first read the Git FAQ and then contact one of the following admins.

You need to create an rsa-key pair, if you don't already have one. This can be done by entering

ssh-keygen -t rsa -b 4096

in a terminal. Follow the instructions of the key generator and you're done. If you didn't change the default saving directory, the key-pair should be located in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub. All you need to do now, is to send the id_rsa.pub to an admin and you're done. Note: It is important that you send the public key id_rsa.pub and not your private key id_rsa!

How to configure git?

We use the version control program git to coordinate the work on larger projekts of the workgroup. If you want to contribute to that work, git need to know who you are. Therefore type at least the following two lines in yout terminal

git config --global user.name "firstName lastName"
git config --global user.email "user@math.hu-berlin.de"

and don't forget to replace everything in quotation mark by your own data. If you are new to git, we suggest to edit some of the default settings of your git to make your life easier. The following setting make your git easier to use and a little more save.

git config --global core.logAllRefUpdates true
git config --global core.sharedRepository 0644
git config --global core.pager 'less $LESS -R'
git config --global core.compression 9
git config --global receive.fsckObjects true
git config --global receive.denyDeletes true
git config --global receive.denyDeleteCurrent true
git config --global receive.denyCurrentBranch true
git config --global receive.denyNonFastForwards true
git config --global merge.log true
git config --global rebase.stat true
git config --global color.ui auto

How to copy the AFEM repository?

To actually get a repository, i.e., to get a local copy you can work with, you first need to clone the repositoty. Therefore navigate to the folder you want to clone your repository to in your terminal and type

git clone ccafm@ssh2.math.hu-berlin.de:afem-base

where afem-base is the name of the repository. If you ask an admin to get access to a repository, you get the exact name of that repository. The clone command creates a directory called afem-base and copies the projects history into that folder.