Update Getting the latest version of MAR (code only) authored by Grailet Jean-François's avatar Grailet Jean-François
--- ---
title: Getting the latest version of MAR (code only) title: Getting the latest version of MAR (code only)
--- ---
If you're already a MAR user, there's a good chance you already have set up a `~/MAR` folder somewhere on a cluster or laboratory machine (e.g., climato\.be for ULiège researchers), where you would find (some of) the content stored in a MAR repository such as [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable). If you're already a MAR user, there's a good chance you already have set up a `~/MAR` folder somewhere on a cluster or laboratory machine (e.g., climato\.be for ULiège researchers), where you would find (some of) the content stored in a MAR repository such as [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable).
However, for various reasons, there's also a good chance you have already tuned some files present on this repository for your own needs, typically in `~/MAR/bin` and `~/MAR/usr`. Therefore, if you cloned or pulled the entire [ESPECES/MAR/stable repository](https://gitlab.uliege.be/especes/mar/stable) in your ``~/MAR`` folder, you may overwrite some of your own scripts in the process. However, for various reasons, there's also a good chance you have already tuned some files present on this repository for your own needs, typically in `~/MAR/bin` and `~/MAR/usr`. Therefore, if you cloned or pulled the entire [ESPECES/MAR/stable repository](https://gitlab.uliege.be/especes/mar/stable) in your ``~/MAR`` folder, you may overwrite some of your own scripts in the process.
...@@ -83,4 +82,8 @@ After saving changes, tell ``git`` to update itself with respects to the new _sp ...@@ -83,4 +82,8 @@ After saving changes, tell ``git`` to update itself with respects to the new _sp
git sparse-checkout reapply git sparse-checkout reapply
``` ```
## Removing paths from the _sparse checkout_
If you want to remove paths from the _sparse checkout_, you can follow the same approach as in previous section and simply remove paths you no longer need from `.git/info/sparse-checkout`, but **consider backing up the files from the removed paths**. Indeed, ``git sparse-checkout reapply`` will remove the files associated to the removed paths from your local copy.
_Parts of this tutorial have been translated from French notes with [DeepL](https://www.deepl.com) and proofread._ _Parts of this tutorial have been translated from French notes with [DeepL](https://www.deepl.com) and proofread._
\ No newline at end of file