Skip to content

Commit eeb0884

Browse files
authored
Merge pull request #197 from NETWAYS/release/v3-0-0
Release v3.0.0
2 parents 59a97ed + 395e2e7 commit eeb0884

18 files changed

+82
-81
lines changed

_images/mermaid/central-vcs.mmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
graph RL
22
subgraph CentralVCS
3-
C{{Version DB}}
3+
C{{VersionDB}}
44
end
55
C -->|Client A| D[File]
66
C -->|Client B| E[File]

_images/mermaid/central-vcs.mmd.png

-196 Bytes
Loading

_images/mermaid/decentral-vcs.mmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
graph RL
22
subgraph CentralVCS
3-
C{{Version DB}}
3+
C{{VersionDB}}
44
end
55
C <--> A
66
C <--> B

_images/mermaid/decentral-vcs.mmd.png

-398 Bytes
Loading

day1/00_Organisation/01_Intro.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
!SLIDE smbullets
1414
# Training Virtual Machine / Notebook
15-
* Base OS is CentOS 7
15+
* Base OS is CentOS
1616
* Password-less sudo is configured
1717
* Git and terminal integrations are installed
1818

@@ -42,7 +42,7 @@
4242

4343
Click on the link in your email to join the session
4444

45-
* Operating system is CentOS 7
45+
* Operating system is CentOS
4646
* We use tmux to join your session and help you
4747
* Change the appearance of the terminal as you like
4848

day1/06_Server/01_Intro.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ there are open source and enterprise hosting options available.
2525
2626
NETWAYS also provides GitLab hosting services:
2727
28-
* https://www.netways.de/managed_hosting/gitlab_ce_hosting/
29-
* https://nws.netways.de/products/gitlab-ce
28+
* https://nws.netways.de/de/apps/gitlab/
3029
3130
~~~ENDSECTION~~~
3231
!SLIDE smbullets

day1/06_Server/02_Gitlab_Introduction.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ system.
1010
* Merge, review, report
1111
* Continuous integration/deployment (CI/CD)
1212

13-
Hosted: https://www.netways.de/managed_hosting/gitlab_ce_hosting/
14-
15-
NWS: https://nws.netways.de/products/gitlab-ce
13+
NWS: https://nws.netways.de/de/apps/gitlab/
1614

1715
~~~SECTION:handouts~~~
1816
@@ -46,7 +44,6 @@ https://about.gitlab.com/install/ce-or-ee/
4644
****
4745
4846
Overview: https://about.gitlab.com/features/
49-
Comparison: https://about.gitlab.com/images/feature_page/gitlab-features.pdf
5047
5148
The source code is publicly available for both editions.
5249
You'll need a valid license for running EE in production.

day1/06_Server/04_Connect_Local_Remote.md

+19-11
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ in GitLab.
2828
* New GitLab repository for this user
2929
* Configure local repository for the remote server
3030
31-
32-
3331
~~~SECTION:handouts~~~
3432
3533
****
3634
37-
# SSH Keys
35+
**SSH Keys**
3836
3937
Generate a new SSH key pair on your client.
4038
@@ -136,16 +134,26 @@ the changes to the Git repository.
136134
* Steps
137135
* Open the project in GitLab and extract the `HTTPS` clone URL
138136
* Navigate into your local repository in `$HOME/training`
139-
* Use `git remote add origin <remoteurl>`
140-
* Push your local branch with `--set-upstream` (short: `-u`)
137+
* Use `git remote add origin <https-remote-url>`
138+
* Push local branches with `git push -u origin --all`
139+
141140
* Bonus
142141
* Set default push method to `simple`
143-
* Explain what `git push -u origin --all` does suggested by GitLab
144142
145143
~~~SECTION:handouts~~~
146144
147145
****
148146
147+
There are various `push` methods:
148+
149+
* `simple` - pushes the current branch with the same name on the remote
150+
* `current` - push the current branch to update a branch with the same name on the receiving end
151+
* `nothing` - do not push anything (error out) unless a refspec is given
152+
153+
References:
154+
155+
https://git-scm.com/docs/git-config/#Documentation/git-config.txt-pushdefault
156+
149157
150158
~~~ENDSECTION~~~
151159
@@ -163,16 +171,14 @@ the changes to the Git repository.
163171
164172
* Open the project in GitLab and extract the `HTTPS` clone URL
165173
* Navigate into your local repository
166-
* Use `git remote add origin <remoteurl>`
167-
* Push your local branch
168-
* Use `--set-upstream` (short: `-u`) to enable the local branch tracking the remote repository
174+
* Use `git remote add origin <https-remote-url>`
175+
* Push local branches with `git push -u origin --all`
169176
170177
## Bonus:
171178
172179
****
173180
174181
* Configure the default push method to `simple`
175-
* Explain what `git push -u origin --all` does suggested by GitLab
176182
177183
!SLIDE supplemental solutions
178184
# Lab ~~~SECTION:MAJOR~~~.~~~SECTION:MINOR~~~: Proposed Solution
@@ -198,7 +204,9 @@ This will not work since the local branch does not follow the remote branch.
198204
Use `--set-upstream` as proposed by the cli output. Short form is `-u`.
199205
200206
@@@ Sh
201-
$ git push --set-upstream origin main
207+
$ cd $HOME/training.git
208+
$ git remote add origin https://[...].nws.netways.de/root/training.git
209+
$ git push -u origin --all
202210
203211
### Set default push method
204212

day2/00_Repetition/01_Intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!SLIDE subsection noprint
1+
!SLIDE subsectionnonum noprint
22
# ~~~SECTION:MAJOR~~~ Repetition
33

44

day2/01_Workflows/02_Centralized.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Remote Repository
8383
!SLIDE smbullets
8484
# Centralized Workflow - Merge Conflicts
8585
86-
* Conflicts arise when the same lines in a file have changed
8786
* When merging Git will try to automatically integrate new changes
87+
* Conflicts arise when the same lines in a file have changed
8888
* Git cannot automatically determine what is correct
8989
* `>>>` marks conflicts and show the differences
9090
* `===` is the barrier between the two states
@@ -114,7 +114,7 @@ Example:
114114
* Steps:
115115
* Open the GitLab project `training`
116116
* Open `README.md` using the Gitlab Web IDE
117-
* Edit `README.md`, add `This change is from my colleague.`
117+
* Edit `README.md`, add `This change is on the remote.`
118118
* Stage & commit the change to main
119119
* Local steps:
120120
* Change into `training` directory on your local machine
@@ -233,15 +233,13 @@ in a non-fast forward fashion is not allowed.
233233
****
234234
Instead of `git fetch` and `git rebase` you can also use
235235
the `git pull` command with the additional `--rebase` flag.
236-
This helps if you are familiar with SVN and `svn update`.
237236
238237
If you forget the `--rebase` flag it will still work
239238
but generate merge commits. This will merge your commits
240239
in historical order but not rebase them on top of the existing
241240
history.
242241
243-
For using a centralized workflow it is better to use `rebase`
244-
instead of generating a merge commit.
242+
When using a centralized workflow it is generally better to use `rebase`.
245243
246244
~~~ENDSECTION~~~
247245

day2/01_Workflows/06_Github_Flow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Example:
4949
5050
****
5151
52-
# Forking Workflow - Keep in Sync
52+
**Forking Workflow - Keep in Sync**
5353
5454
* Pull changes from `upstream` HEAD to own repository main branch to sync development
5555
* Remote `HEAD` is the default branch for this repository, usually `main`

day2/02_Integrations/02_IDEs.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
1313
****
1414
15-
* Eclipse egit: http://www.eclipse.org/egit/
16-
* vim-fugitive: https://github.com/tpope/vim-fugitive
17-
* emacs-magit: https://magit.vc/
15+
References:
16+
17+
Eclipse egit: http://www.eclipse.org/egit/
18+
19+
vim-fugitive: https://github.com/tpope/vim-fugitive
20+
21+
emacs-magit: https://magit.vc/
1822
1923
~~~ENDSECTION~~~
2024
@@ -40,7 +44,9 @@
4044
4145
****
4246
43-
Reference: https://www.jetbrains.com/help/idea/using-git-integration.html
47+
Reference:
48+
49+
https://www.jetbrains.com/help/idea/using-git-integration.html
4450
4551
~~~ENDSECTION~~~
4652
@@ -67,8 +73,9 @@ Reference: https://www.jetbrains.com/help/idea/using-git-integration.html
6773
6874
References:
6975
70-
* https://docs.microsoft.com/en-us/vsts/git/gitquickstart?tabs=visual-studio
71-
* https://visualstudio.github.com/
76+
https://docs.microsoft.com/en-us/vsts/git/gitquickstart?tabs=visual-studio
77+
78+
https://visualstudio.github.com/
7279
7380
7481
~~~ENDSECTION~~~

day2/02_Integrations/04_Hooks.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ Official GitLab Slack integration: https://gitlab.com/gitlab-org/gitlab-ce/blob/
5656
5757
Both Rocket.Chat and GitLab are available at NWS:
5858
59-
* https://nws.netways.de/products/gitlab-ce
60-
* https://nws.netways.de/products/rocket-chat
59+
https://nws.netways.de/products/gitlab-ce
60+
61+
https://nws.netways.de/products/rocket-chat
6162
6263
~~~ENDSECTION~~~

0 commit comments

Comments
 (0)