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.
...
@@ -27,7 +28,7 @@ Note that you can easily check your global ``git`` parameters by viewing the con
...
@@ -27,7 +28,7 @@ Note that you can easily check your global ``git`` parameters by viewing the con
defaultBranch = main
defaultBranch = main
```
```
## Setting up _sparse checkout_ of a ``git`` repository, step by step
## Setting up _sparse_ copy of a ``git`` repository, step by step
For this example, we will assume you want to get the `src/forMAR/forMAR` folder from the [ESPECES/MAR/stable repository](https://gitlab.uliege.be/especes/mar/stable). In other words, you want to get the latest stable version of MAR.
For this example, we will assume you want to get the `src/forMAR/forMAR` folder from the [ESPECES/MAR/stable repository](https://gitlab.uliege.be/especes/mar/stable). In other words, you want to get the latest stable version of MAR.