From e7416443324453e32c7f3f58bb92c4bb0446f98f Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Wed, 23 Jan 2019 15:29:05 +0100 Subject: [PATCH] additions of forks and branches --- branches.md | 55 +++++++++++++++++++++- cloneRepo.md | 61 ------------------------ essential_commands.md | 37 ++++----------- forks.md | 106 ++++++++++++++++++++---------------------- img/bulb.png | Bin 0 -> 4833 bytes list.json | 14 +++++- ready.md | 5 -- syncFork.md | 51 ++++++++++++++++++++ the_terminal.md | 6 +-- 9 files changed, 180 insertions(+), 155 deletions(-) create mode 100644 img/bulb.png delete mode 100644 ready.md create mode 100644 syncFork.md diff --git a/branches.md b/branches.md index b00b94f2..5069da24 100644 --- a/branches.md +++ b/branches.md @@ -1,3 +1,56 @@ +## Development scheme + +<br> +Generally, in a repository, there are guidelines for contributing. + +<div class="fragment"> + +<br> +A common development scheme is dual with a: + +- **development** version of the code on `develop` +- **stable** version of the code on `master` + +<br> +A **version** of the code is referred to as a **branch**. + +<div class="fragment"> +<br><br> +(Live Demo) + + +<br> +<font color="red">In the practice repository, the development branch is called `develop`!</font> + +<div class="fragment"> +<br> + Use this dual development scheme for your own repositories! + + +## Be safe! + +First, browse to the cloned practice directory: +```bash +$ cd practice +``` + +Then, checkout the `develop` version of the code: +```bash +$ git checkout develop +``` + +<div class="fragment"> +<br> +Then, <font color="red">create a new **branch**!</font> + +(more details on **branches** in a few minutes) + +<br> +```bash +$ git checkout -b first-branch +``` + + ## Branches Branch-off within the same repository in order to stay safe! @@ -101,7 +154,7 @@ Detailed information is on [help.github.com/articles/creating-a-pull-request/](h <ol start="3"> <li>Assign your peer <br> - +  </li> </ol> diff --git a/cloneRepo.md b/cloneRepo.md index e4d78710..99457b56 100644 --- a/cloneRepo.md +++ b/cloneRepo.md @@ -16,64 +16,3 @@ $ git clone https://github.com/userName/myRepo.git myRepo <br> <div class="fragment"> You will be prompted to enter your credentials. - - -## What is a `fork`? - -<div class="fragment"> -<img src="img/fork.jpg" class="as-is" /> -[//]: <> (http://www.cndajin.com/data/wls/246/22302193.jpg) - - -## Not really ... -<img src="img/fork-crossed.png" class="as-is" /> - - -## What is a `fork`? -In general, when contributing to a repository, you only have **read** access. - -<div class="fragment"> -In other words, you can only **pull** (unless it is your own repository or access has been granted). - -<div class="fragment"> -<br> -In general, you **cannot write** changes. In other words, you do not have **push** access. - -<div class="fragment"> -You have to work on your **own copy**. - -<div class="fragment"> -<br> -In other words, you have to work on your own <font color="red">fork</font>. - - -## Time to practice! - -(Live Demo) - -<br> - -Fork the practice repository: <br><br> -https://git-r3lab.uni.lu/R3.training/git.practice - -Then, clone your fork to your home directory! - -<div class="fragment"> -<br> -```bash -$ git clone ssh://git@git-r3lab-server.uni.lu:8022/yourUserName/ - git.practice.git practice -``` - -<div class="fragment"> -<br><br> -<font color="red"> -Any other rudimentary method such as - -*'I simply download the `.zip` and unzip it - works like a charm!'* - -shall **be avoided**! -</font> - -<div class="fragment"> -<br>Why? \ No newline at end of file diff --git a/essential_commands.md b/essential_commands.md index 43bde21d..49904675 100644 --- a/essential_commands.md +++ b/essential_commands.md @@ -1,3 +1,6 @@ + + + ## The 5 essential commands <br> @@ -19,11 +22,6 @@ $ git push ## Pull the latest version of an existing repository -First, browse to the cloned directory (`git clone [...]`): -```bash -$ cd practice -``` - Then, pull the latest revision: ```bash $ git pull @@ -35,36 +33,19 @@ Verify its `status` with: $ git status ``` +## Modify a file -## Be safe and create a new branch +Modify and rename `addTwoNumbers.m` in the folder `src/firstCommit` as `addTwoNumbers_myName`: -(more on branches in a few minutes) -<br><br><br><br><br> ```bash -$ git checkout -b matrix_vect_mult_myName +$ mv firstCommit/addTwoNumbers.m firstCommit/addTwoNumbers_myName.m ``` - -## Modify a file - -Modify and rename `addTwoNumbers.m` in the folder `firstCommit` - -<br> -Open the file `addTwoNumbers.m` in the folder `firstCommit` using the `Atom` editor (or any other editor). - -<br> -Then, rename the function by adding your name (`addTwoNumbers_myName`) - <br> -Uncomment the line +Open the file using the `Visual Studio Code` editor (or any other editor) +and correct the line ```Matlab -% c = a + b -``` - -<br> -Save and rename the file by <font color="red">adding your name</font> -```bash -$ mv firstCommit/addTwoNumbers.m firstCommit/addTwoNumbers_myName.m +c = a + b; ``` diff --git a/forks.md b/forks.md index 9109050e..1c23e278 100644 --- a/forks.md +++ b/forks.md @@ -1,87 +1,81 @@ -## Forks -You **fork** when you want to work on a public repository or a protected repository. +## What is a `fork`? -<br><br> -Remember: - -- A **fork** is your own **copy** of a repository. -- A **fork** can have multiple **branches**. -- A **fork** is not a **branch**, but can have multiple **branches**. - -<br><br> -A **fork** is only useful when you want to contribute, e.g., to The COBRAToolbox. +<div class="fragment"> +<img src="img/fork.jpg" class="as-is" /> +[//]: <> (http://www.cndajin.com/data/wls/246/22302193.jpg) -## Fork via interface +## Not really ... +<img src="img/fork-crossed.png" class="as-is" /> -Browse to the original repository and click on the button `Fork` - +## What is a `fork`? +In general, when contributing to a repository, you only have **read** access. +<div class="fragment"> +In other words, you can only **pull** (unless it is your own repository or access has been granted). -## Clone your fork +<div class="fragment"> +<br> +In general, you **cannot write** changes. In other words, you do not have **push** access. -Clone first -```bash -$ git clone https://git-r3lab.uni.lu/myGroup/myRepo.git forkMyRepo -``` +<div class="fragment"> +You have to work on your **own copy**. +<div class="fragment"> <br> -then, you can change to the directory -```bash -$ cd forkMyRepo -``` +In other words, you have to work on your own <font color="red">**fork**</font>. -## Add the address of the original repository +## How to get a fork? -Add the `upstream` address (original/protected repository) -```bash -$ git remote add upstream https://git-r3lab.uni.lu/origGroup/origRepo.git -``` +Browse to the original repository and click on the button `Fork`: -<br> -You can then check whether the remote address is set correctly -```bash -$ git remote -v -``` -<!-- <img src="img/remote-0-master.png" class="as-is" /> //--> -<!-- <img src="img/remote-1-remote.png" class="as-is" /> //--> -<!--- <img src="img/remote-2-push.png" class="as-is" /> //--> + +(Live Demo) -## Synchronize your fork -```bash -$ git checkout master -$ git status -``` +## Time to practice! + +(Live Demo) -<div class="fragment"> <br> -Fetch the changes from upstream (similar to pull) -```bash -$ git fetch upstream -``` + +Fork the practice repository: <br><br> +https://git-r3lab.uni.lu/R3.training/git.practice + +Then, clone your fork to your home directory! <div class="fragment"> <br> -Merge the retrieved changes ```bash -$ git merge upstream/master +$ git clone ssh://git@git-r3lab-server.uni.lu:8022/yourUserName/ + git.practice.git practice ``` <div class="fragment"> -<br> -Push the changes to your own fork -```bash -$ git push origin master -``` +<br><br> +<font color="red"> +Any other rudimentary method such as + +*'I simply download the `.zip` and unzip it - works like a charm!'* + +shall **be avoided**! +</font> + +<div class="fragment"> +<br>Why? + + +## How to update my fork? +As you have your own fork, it will not automatically update once the original repository is update. -## Pull/Merge Requests + You have to update it yourself! -**Good news!** +<div class="fragment"> +<br> +**More on that later!** -Same procedure as with merging a branch... diff --git a/img/bulb.png b/img/bulb.png new file mode 100644 index 0000000000000000000000000000000000000000..590f8d9270fea6be86b5e356cb07cd9232ef7056 GIT binary patch literal 4833 zcmZu#cR1T^+m2nUwO5hYRP9kBMm024tfDq)5}TM!W0cZTRf-x>t5v0Tt(vu!*rQZz zs)|~*w@;tvdEfVYzvH`)<6hT&p67L)*YCeyq@n(8dKxYo002O*1A`i0?6MbA<r3w^ zsw_>!U2NozH{mw{fYO(=CkTp*I|vCgh64cp!T><X69C}oA{4R&0QgA*04w$Y02mJd zuzRM}8bK}|s6Am8J^%nM^Pfoqc%8-p0FZP$o0$8W!}Y*OjJqTPg}INGeCY0Zfd&8| z55X5lceF18^w8bS!w39OmH#gU_~QI0EX5D{3*zgl%5M%g1l_`Tqd^Li@{-d0YBV4a z2;z-$02@QK|Dj*pRQa8JeLcZaQdlfj5-TT(@phDwQC3!#l9rW{m6f<aNciA9d=U>N zJbVQH7WtPB6zzlbcJ}mj#(04K=pyc8{CrjU`Tr#P_xQU`UuTE^Wb*L&$JT{GsXs4L zGLq6#{~ztb?7!>#FV;hZ=ij8iT>YI4@<$46;O&gQDECiMYBG?&<o_%7pW+}F>fl@6 zXoN4u+XR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GAR-R!vfamf|P z^A1}2hb&}N4<w)&JwS2CfcGx$_)15jZuJ0($^#Z$FW_PAQ{O3CD|AVvc&RYannNXa z+I)pMi?KXO1H~8Ln<tX=rJlc*D$dojE`mUzd^DI{cUkVz*?|1RMx(401`sae3uKb8 zBUII6JBpQj!x3{rm0y45j&A*=mOt=J=*wn|=cKS{lZuzd)~Ad$YF_BGqL_|CbPAoC z<-!dNK#-Zbn-;u474&(YPoRnXkZPDq2|?kBJd-$?xVyi&@>J{hW-<cyYf}ojIJ1vW s{z;PtE5NjQ;Lc%hH}EMo@|))**_RmGX$+bN{`^SN(b9(&YubnY59kyKyZ`_I literal 0 HcmV?d00001 diff --git a/list.json b/list.json index cab3401b..022aba44 100644 --- a/list.json +++ b/list.json @@ -54,7 +54,7 @@ } }, { - "filename": "essential_commands.md", + "filename": "forks.md", "attr": { "data-background": "img/whiteBG.jpg" } @@ -65,6 +65,18 @@ "data-background": "img/whiteBG.jpg" } }, + { + "filename": "essential_commands.md", + "attr": { + "data-background": "img/whiteBG.jpg" + } + }, + { + "filename": "syncFork.md", + "attr": { + "data-background": "img/whiteBG.jpg" + } + }, { "filename": "best_practices.md", "attr": { diff --git a/ready.md b/ready.md deleted file mode 100644 index 10bdd8c2..00000000 --- a/ready.md +++ /dev/null @@ -1,5 +0,0 @@ -## Ready to practice? - -<br>Go to https://git-r3lab.uni.lu/R3.training/git.practice - -<br>And follow the instructions in the `README` file. diff --git a/syncFork.md b/syncFork.md new file mode 100644 index 00000000..7d18581d --- /dev/null +++ b/syncFork.md @@ -0,0 +1,51 @@ +## Synchronize your fork + + Remember, we have to regularly update our own copy of the code. + + +## Add the address of the original repository + +Add the `upstream` address (original/protected repository) +```bash +$ git remote add upstream ssh://git@git-r3lab-server.uni.lu:8022/R3.training/ + git.practice.git +``` + + Note the change in the URL. + + +<br> +You can then check whether the remote address is set correctly +```bash +$ git remote -v +``` + +<div class="fragment"> +<br> +Fetch the changes from upstream (similar to pull) +```bash +$ git fetch upstream +``` + +<div class="fragment"> +<br> +Merge the retrieved changes on the `master` branch: +```bash +$ git checkout master +$ git merge upstream/master +$ git push origin master +``` + +<div class="fragment"> +<br> +Merge the retrieved changes on the `develop` branch: +```bash +$ git checkout develop +$ git merge upstream/develop +$ git push origin develop +``` + + +## Time to practice! + +(Live Demo) \ No newline at end of file diff --git a/the_terminal.md b/the_terminal.md index d6395118..1c6c663f 100644 --- a/the_terminal.md +++ b/the_terminal.md @@ -5,7 +5,7 @@ Start the Terminal from your `/Applications` directoy. -*Pro Tip:* Install iTerm2: <br>`https://www.iterm2.com` + Install iTerm2: `https://www.iterm2.com` <br> **Windows users:** @@ -15,8 +15,8 @@ Install Git Bash: <br>`https://git-scm.com/download/win` <br> **Linux users:** -Launch default terminal. -*Pro Tip:* Install Terminator: <br>`https://launchpad.net/terminator` +Launch default terminal.<br> + Install Terminator: `https://launchpad.net/terminator` -- GitLab