From e72482b14673e5bf88434dbd91c3d173dee51f50 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Mon, 28 Apr 2025 09:16:52 +0200 Subject: [PATCH] Mention empty commits and skip CI --- day1/04_Commits/02_Commits.md | 5 +++++ day2/03_CI/04_Gitlab_Pipelines.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/day1/04_Commits/02_Commits.md b/day1/04_Commits/02_Commits.md index 12dabc0..0f485e1 100644 --- a/day1/04_Commits/02_Commits.md +++ b/day1/04_Commits/02_Commits.md @@ -20,6 +20,11 @@ Additionally, the date, time, and the checksum of the previous commit are stored user name and email address as commit author. This command opens the configured editor requiring you to add a commit message. +You can also create empty commits. This is sometimes done with the initial commit in a repository: + + @@@Sh + git commit --allow-empty -m "Initial commit" + ~~~ENDSECTION~~~ !SLIDE smbullets diff --git a/day2/03_CI/04_Gitlab_Pipelines.md b/day2/03_CI/04_Gitlab_Pipelines.md index c500537..f4f328b 100644 --- a/day2/03_CI/04_Gitlab_Pipelines.md +++ b/day2/03_CI/04_Gitlab_Pipelines.md @@ -81,6 +81,8 @@ Documentation: https://docs.gitlab.com/ce/ci/yaml/README.html#stage * Commit the changes * Check the GitLab Job Pipelines +Hint: You can add `[ci skip]` or `[skip ci]` to your commit message. + !SLIDE supplemental solutions # Lab ~~~SECTION:MAJOR~~~.~~~SECTION:MINOR~~~: Proposed Solution ****