Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Loic Marx
advanced-practice
Commits
96de4392
Verified
Commit
96de4392
authored
Sep 20, 2019
by
Laurent Heirendt
✈
Browse files
changes to readme
parent
27674d4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
96de4392
...
@@ -2,22 +2,25 @@
...
@@ -2,22 +2,25 @@
# Advanced git course - Practice repository
# Advanced git course - Practice repository
## Make your changes
First, fork and clone this practice repository.
Copy the file
`template.md`
in the folder
`_attendees`
and rename it with your firstname:
Add a remote to the upstream repository:
```
bash
```
bash
$
cd
_attendees
$
cd
advanced-practice
$
cp
template.md myName.md
$
git remote add upstream ssh://git@git-r3lab-server.uni.lu:8022/R3/school/git/advanced-practice.git
$
git fetch
```
```
Then, make your changes with your favorite editor!
Then, create a separate branch from the develop branch:
```
bash
$
git checkout
-b
myBranch upstream/develop
```
## Commit your changes and push
Add your name file in the
`attendees`
directory:
When you are done editing your file, add the file to the stage and commit it:
When you are done editing your file, add the file to the stage and commit it:
```
bash
```
bash
$
git add myName.md
$
git add
attendees/
myName.md
$
git commit
-m
"Edit the content of the subpage myName.md"
$
git commit
-m
"Edit the content of the subpage myName.md"
```
```
...
@@ -26,13 +29,13 @@ Once you are done committing, you can push your branch to your fork:
...
@@ -26,13 +29,13 @@ Once you are done committing, you can push your branch to your fork:
$ git push origin myBranch
$ git push origin myBranch
```
```
## Open a
pull-
request
## Open a
merge
request
If you now browse to your fork on Git
hu
b, you can open a pull request and submit it for review.
If you now browse to your fork on Git
la
b, you can open a pull request and submit it for review.
:warning: Please make sure to select
`develop`
as the target branch.
:warning: Please make sure to select
`develop`
as the target branch.
:warning: Watch out for comments from the reviewer! If there are things to be changed, simply change locally, commit,
:warning: Watch out for comments from the reviewer! If there are things to be changed, simply change locally, commit,
and then push again. The pull-request will update automatically.
and then push again. The pull-request will update automatically.
Once the pull request has been accepted, you will be able to see your page online! :tada:
Once the pull request has been accepted, you will be able to see your page online! :tada:
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment