Skip to content
Snippets Groups Projects
Commit f1288d0c authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Updated slides

parent 0a99a8e4
No related branches found
No related tags found
No related merge requests found
...@@ -11,13 +11,32 @@ or in other words (more technically) ...@@ -11,13 +11,32 @@ or in other words (more technically)
```shell ```shell
$ git pull $ git pull
$ git status $ git status
$ git add myFile.txt $ git add myFile.txt # example
$ git commit -m "myMessage" $ git commit -m "myMessage" # example
$ git push $ 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 Créer l'espace de travail
...@@ -114,33 +133,3 @@ _index_ ou _staging area_ ...@@ -114,33 +133,3 @@ _index_ ou _staging area_
$ git status $ git status
# Changes to be commited: # 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 ...@@ -62,10 +62,11 @@ $ git config -l
This should list the configuration with `user.name` and `user.email`. 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) Simply `clone` the repository (i.e., retrieve a copy)
```sh ```sh
$ git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox $ git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox
``` ```
...@@ -75,3 +76,18 @@ Any other rudimentary method such as ...@@ -75,3 +76,18 @@ Any other rudimentary method such as
*'I simply download the `.zip` un unzip it - works like a charm!'* *'I simply download the `.zip` un unzip it - works like a charm!'*
shall **be avoided**! 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 @@ ...@@ -3,15 +3,10 @@
0. The Terminal 0. The Terminal
1. What is `git`? <!--(5 min)//--> 1. What is `git`? <!--(5 min)//-->
2. GitHub and GitLab <!--(5min)//--> 2. GitHub and GitLab <!--(5min)//-->
* Practical session <!--(5 min)//-->
- GitLab interface
- GitHub interface
3. Installation of `git` 3. Installation of `git`
4. The 5 essential commands <!--(10 min)//--> 4. The 5 essential commands <!--(10 min)//-->
* Practical session <!--(15 min)//-->
- `clone/pull` / `status` / `add` / `commit` / `push` - `clone/pull` / `status` / `add` / `commit` / `push`
5. Branches <!--(10 min)//--> 5. Branches <!--(10 min)//-->
* Practical session <!--(10 min)//-->
6. Forks <!--(10 min)//--> 6. Forks <!--(10 min)//-->
* Practical session <!--(10 min)//--> 7. Practical session <!--(40 min)//-->
7. Evaluation <!--(10 min)//--> 8. Evaluation <!--(10 min)//-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment