From f1288d0cd47240dead550072a702ba172321f416 Mon Sep 17 00:00:00 2001 From: Laurent Heirendt <laurent.heirendt@uni.lu> Date: Fri, 13 Jan 2017 16:38:46 +0100 Subject: [PATCH] Updated slides --- essential_commands.md | 55 +++++++++++++++++-------------------------- installation.md | 20 ++++++++++++++-- overview.md | 9 ++----- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/essential_commands.md b/essential_commands.md index 2228dd35..7beb05c5 100644 --- a/essential_commands.md +++ b/essential_commands.md @@ -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 diff --git a/installation.md b/installation.md index eb1e1f92..3eba835d 100644 --- a/installation.md +++ b/installation.md @@ -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. diff --git a/overview.md b/overview.md index 1ab33990..905af770 100644 --- a/overview.md +++ b/overview.md @@ -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)//--> -- GitLab