From cfe9f057f1111e7712b3cac4e89ebd502041a2f9 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Mon, 16 Jan 2017 09:19:14 +0100 Subject: [PATCH] Changes to branches and other slides --- branches.md | 28 ++++++++++++++++++++++++---- good_practices.md | 22 ++++++++++++---------- installation.md | 2 +- the_terminal.md | 3 +-- 4 files changed, 38 insertions(+), 17 deletions(-) diff --git a/branches.md b/branches.md index 79e02c90..16ab200c 100644 --- a/branches.md +++ b/branches.md @@ -49,14 +49,11 @@ Only difference: you are on your own branch. ## Merge a branch -If you want your feature on the `develop` or `master` branches, merge your branch with the -`develop` or `master` or branch: +If you want your feature on the `develop` or `master` branches, merge! <br> **submit a MR or a PR** via the Github/Gitlab interface. -<!-- PICTURES HERE //--> - <div class="fragment"> <br> **ADVANCED**: You can see the differences between branches @@ -66,3 +63,26 @@ $ git diff master..matrix_vect_mult_myName <br> You can delete the branch via the interface. + + +## Gitlab interface + +Detailed information is [docs.gitlab.com/ee/gitlab-basics/add-merge-request.html](https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html). + +1. Click on **New merge request** + + +<br><br> +2. Compare the branches + + + + +<ol start="3"> + <li>Submit the MR + + /li> +</ol> + + +## Github interface diff --git a/good_practices.md b/good_practices.md index 2fc2ca07..e207fb53 100644 --- a/good_practices.md +++ b/good_practices.md @@ -1,27 +1,29 @@ ## Good practices -1. `clone` a repository, do not download the `.zip` file. -2. `pull` before `push` -3. Work on your **own** branch (in your own fork) -4. Do **not** `push` to `master` or `develop` (submit PR) -5. Do **not** combine `git` commands +* `clone` a repository, do not download the `.zip` file. +* `pull` before `push` +* Work on your **own** branch (in your own fork) +* Do **not** `push` to `master` or `develop` (submit PR) +* Do **not** combine `git` commands ```sh $ git commit -am "myMessage" # do not do this ``` -6. Stage only 1 file at once using +* Stage only 1 file at once using ```sh $ git add myFile.txt ``` -7. Commit only a few files at once -8. Submit a PR instead of pushing directly -9. Always sync your fork before starting to work + + +* Commit only a few files at once +* Submit a PR instead of pushing directly +* Always sync your fork before starting to work ```sh $ git remote -v # verify to have the right remote set $ git fetch upstream $ git merge upstream/master $ git push origin master # do not do git push (!) ``` -10. `Push` often - avoid conflicts +* `Push` often - avoid conflicts <br><br> **A `push` a day keeps the conflict away** diff --git a/installation.md b/installation.md index a2a982d1..deff9b91 100644 --- a/installation.md +++ b/installation.md @@ -1,6 +1,6 @@ ## Installation -<img src="img/github_app.png" class="as-is" height="300" /> +<img src="img/github_app.png" class="as-is" height="200" /> **Linux (Ubuntu)** diff --git a/the_terminal.md b/the_terminal.md index a0bdfada..23ebb3f0 100644 --- a/the_terminal.md +++ b/the_terminal.md @@ -19,7 +19,6 @@ in your home directory, denoted as `~/`. ## Essential Linux commands -<div class="fragment"> List the contents of a directory ```sh $ ls @@ -40,7 +39,7 @@ $ cd .. $ cd ../.. ``` -<div class="fragment"> + <br> Create a directory ```sh -- GitLab