Commit f1288d0c authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

Updated slides

parent 0a99a8e4
......@@ -11,13 +11,32 @@ or in other words (more technically)
```shell
$ git pull
$ git status
$ git add myFile.txt
$ git commit -m "myMessage"
$ git add myFile.txt # example
$ git commit -m "myMessage" # example
$ git push
```
## Nouveau projet : Listes
## Pull the latest version of an existing repository
First, browse to the cloned directory (`git clone [...]`):
```sh
$ cd practice
```
Then, pull the latest revision:
```sh
$ git pull
# Already up to date
```
Verify its `status` with:
```sh
$ git status
```
## Creat
Créer l'espace de travail
......@@ -114,33 +133,3 @@ _index_ ou _staging area_
$ git status
# Changes to be commited:
```
<img src="img/git-0-start.png" class="as-is" />
<img src="img/git-1-dirty.png" class="as-is" />
<img src="img/git-2-add.png" class="as-is" />
<img src="img/git-3-commit.png" class="as-is" />
## Et dans l'autre sens ?
<img src="img/git-1-dirty.png" class="as-is" />
<img src="img/git-4-checkout.png" class="as-is" />
<img src="img/git-2-add.png" class="as-is" />
<img src="img/git-5-reset.png" class="as-is" />
## Rinse and Repeat
......@@ -62,10 +62,11 @@ $ git config -l
This should list the configuration with `user.name` and `user.email`.
## I need to get `The COBRAToolbox` - How?
## I need to get
<br>
##`The COBRAToolbox` - How?
Simply `clone` the repository (i.e., retrieve a copy)
```sh
$ git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox
```
......@@ -75,3 +76,18 @@ Any other rudimentary method such as
*'I simply download the `.zip` un unzip it - works like a charm!'*
shall **be avoided**!
## How do I get any other repository?
You can clone any other repository with:
```sh
$ git clone https://github.com/userName/myRepo.git myRepo
```
<br>
Clone the training repository with:
```sh
$ git clone https://git-r3lab.uni.lu/git-training/practice.git practice
```
Note: You may be prompted to enter your credentials.
......@@ -3,15 +3,10 @@
0. The Terminal
1. What is `git`? <!--(5 min)//-->
2. GitHub and GitLab <!--(5min)//-->
* Practical session <!--(5 min)//-->
- GitLab interface
- GitHub interface
3. Installation of `git`
4. The 5 essential commands <!--(10 min)//-->
* Practical session <!--(15 min)//-->
- `clone/pull` / `status` / `add` / `commit` / `push`
5. Branches <!--(10 min)//-->
* Practical session <!--(10 min)//-->
6. Forks <!--(10 min)//-->
* Practical session <!--(10 min)//-->
7. Evaluation <!--(10 min)//-->
7. Practical session <!--(40 min)//-->
8. Evaluation <!--(10 min)//-->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment