Skip to content
Snippets Groups Projects
Forked from R3 / school / courses
1194 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Installation

Linux (Ubuntu)

$ sudo apt-get install git-all

**macOS**

Install Xcode Command Line Tools


**Windows**

Follow instructions on git-for-windows.github.io.

or: MobaXTerm with git plugin: mobaxterm.mobatek.net.

More on git-scm.com/book/en/v2/Getting-Started-Installing-Git

How to start?

Linux (Ubuntu) and macOS

Start the terminal (or any other shell)


**Windows**

Start GUI Bash or MobaXTerm.

How to configure git?

$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "first.last@uni.lu"

Does it work?

$ git --version
# git version 2.10.0

Test the configuration

Test whether your username and email have been registered

$ git config --list

This should list the configuration with `user.name` and `user.email`.

How do I clone a repository?

You can clone a repository with

$ git clone https://github.com/userName/myRepo.git myRepo

Clone the training repository with ```bash $ git clone https://git-r3lab.uni.lu/git-training/practice.git practice ```
You may be prompted to enter your credentials.

Any other rudimentary method such as

'I simply download the .zip un unzip it - works like a charm!'

shall be avoided!

I need The COBRAToolbox?

Simply clone the repository (i.e., retrieve a copy)

$ git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox



Do not do it right now! Thank you.