Description:
This routine describes how to setup a github account and pull repositories of the CFDEMproject.
Procedure:
Basically the following steps have to be performed:
Get acces to non-public repositories:
If you have a support contract / non-public repository access by DCS Computing GmbH, please follow the steps below to set up your user and RSA key. After that please send your username and company affiliation to DCS Computing GmbH to get your account activated. Afterwards you can clone also the non-public repositories.
Create an account:
Please create a free account at https://github.com.
example: user (username) user@mail.com pwd (pwd)
Please use your own username and mail adress here and for the following steps!
Create your RSA key:
Please find the complete setup description here, or use the short description below.
Open a terminal and execute:
cd ~/.ssh ssh-keygen -t rsa -C "user@mail.com" gedit id_rsa.pub&
Add your RSA key to your github account:
Login at https://github.com with you user, then
To check your settings, open a terminal and execute:
ssh -T git@github.com
git clone the desired repository:
To clone the non-public LIGGGHTS(R)-PUBLIC repository (in this example LIGGGHTS-COMPANY, where COMPANY is the name of your company), open a terminal and execute:
git clone git@github.com:CFDEMproject/LIGGGHTS-COMPANY.git
Note: the git protocol will not work if your computer is behind a firewall which blocks the relevant TCP port, you can use alternatively this command (you need to enter your password):
git clone https://user@github.com/CFDEMproject/LIGGGHTS-COMPANY.git
Update your repositories by git pull:
To get the latest version, open a terminal, go to the location of your local installation and type:
git pull