-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontribution.txt
54 lines (30 loc) · 1.74 KB
/
contribution.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
To collaborate in the development of this project, work on a separate branch from master. When the piece of work you're
working at is completed (or it is not completed but you need help to move forward), push the branch and create a new
Pull Request (PR) (called Merge Request in Niksula).
Before creating a new branch, always switch to the master branch:
`git checkout master`
and pull the latest updates:
`git pull`
Then create a new branch:
`git checkout -b feature/name` or `git checkout -b fix/name`
Before creating the PR, get the latest updates from master and merge them in your branch:
`git fetch origin master`
`git rebase origin/master`
and solve eventual conflicts.
Then go to Niksula and open a new Merge Request that points to master and assign it to the other team members so that it
can be reviewed and, eventually, merged.
A better way to work is to create a Fork of the repo. A fork is another repository, which will be created in your Git
account To create a fork, go to the project page in Niksula and click the fork button on the top right corner. After
that, open the terminal and cd into where you want to clone your project (don't create a project folder yet, git clone
will automatically create one for you).
Not clone the project:
`git clone YOUR_PROJECT_URL`
Set the upstream to be on the main repository:
`git remote add upstream [email protected]:munaris1/wsd_project.git`
Now you are up and running!
When you want to fetch the latest updates from the main repository:
`git fetch upstream master`
and to merge them in your branch
`git rebase upstream/master`
When you are ready to merge your updates with the master branch, push your commits to your repository and then go to the
main repository and create a new Merge Request.