| ... | ... | @@ -2,6 +2,7 @@ |
|
|
|
title: Pushing MAR code changes
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
This tutorial describes how you can commit and push MAR code changes on a GitLab repository (such as [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable)) from a cluster or lab machine (such as climato\.be) using a few ``git`` commands.
|
|
|
|
|
|
|
|
>**Reminders about ``git`` terminology:**
|
| ... | ... | @@ -108,7 +109,7 @@ chmod 0600 ~/.uliege-gitlab-credentials |
|
|
|
|
|
|
|
## Pushing changes in three commands
|
|
|
|
|
|
|
|
All of the following commands are to be executed from the directory where you copied a ESPECES/MAR repository (if you followed [the previous tutorial](mar-pull), this folder may be `~/GitLab/MAR/stable`), assuming that you have followed all steps from the previous sections. For this tutorial, we will assume you want to modify MAR source code and push your changes to [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable).
|
|
|
|
All of the following commands are to be executed from the directory where you copied a [ESPECES/MAR](https://gitlab.uliege.be/especes/mar) repository (if you followed [the previous tutorial](mar-pull), this folder may be `~/GitLab/MAR/stable`), assuming that you have followed all steps from the previous sections. For this tutorial, we will assume you want to modify MAR source code and push your changes to [ESPECES/MAR/stable](https://gitlab.uliege.be/especes/mar/stable).
|
|
|
|
|
|
|
|
1) Use the ``git add path/to/changes`` command to add the files that have been modified for the next _commit_. There is no need to do this file by file or to restrict yourself to modified files: you can specify a folder path or a pattern, for example to the modified MAR source code (even if you have only changed a single file), as shown below. ``git`` will then detect the modified files by itself.
|
|
|
|
```
|
| ... | ... | |
| ... | ... | |