Commit d8c8ea25 authored by ljurk's avatar ljurk

add instructions for branching

parent a58f1ffc
......@@ -27,6 +27,29 @@ in tortoiseGit you have to check the following checkbox to accomplish this:
![](img/pull-rebase.png)
## creating branches
You are most likely not allowed to push to the master branch. Only the maintainers of a repository are allowed to do so. The only possibility you have, is to create a branch and request the maintainers to merge this branch into master.
step by step(shell):
1. create Branch and checkout `git checkout -b myNewFeature`
3. do what you have to do
4. commit: `git commit -m'change h1 to h2'`
5. push `git push --set-upstream origin myNewFeature`
6. while pushing gitlab prints an url, if you visit this url, you can create a merge request for this branch
step by step(tortoiseGit):
1. `Create Branch...`
2. ![](img/branch01.png)
1. `Switch/Checkout` to the newly created branch
3. do what you have to do
4. commit
5. push
6. while pushing gitlab prints an url, if you visit this url, you can create a merge request for this branch
7. ![](img/branch02.png)
## commit messages
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment