CONTRIBUTING.md 1.5 KB
Newer Older
Mathieu Faverge's avatar
Mathieu Faverge committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# To contribute to the project, you need to do it through pull/merge request

First you need to fork the repository into your own account. You can do that simply by clicking the fork button on the gitlab interface.

https://gitlab.inria.fr/solverstack/pastix/forks/new

Then, clone the repository on your laptop:
```
#!shell
git clone git@gitlab.inria.fr:username/forkname.git
```

Once this is done, you can setup the PaStiX repository as the upstream of your clone to simplify the update of your fork repository.
```
#!shell
git remote add upstream git@bitbucket.org:solverstack/pastix.git
```

Now, you have your repository configured, and you want to create a new pull request. The first step is to create a branch from the HEAD of the your fork repository.
```
#!shell
git branch your_branch_name
git checkout your_branch_name
```

Commit your modifications into your branch. Then, you need to push this new branch to your online repository
```
#!shell
git push origin your_branch_name
```

Once your branch is online, on the gitlab interface, go to the branches webpage, select the branch you want to push as a merge request, and push the button !!!

***Be careful to check the 'close after merge' check box, and to push to the solverstack/pastix repository*** By default the checkbox is not checked, but the repository should be the correct one by default.


# To review locally a private pull request submitted by someone else

Follow the instructions describes by the "Check out branch" button associated to the merge request.