From 608f70dd9ff8b8afbce38ea9d51e3633f150e985 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Mon, 7 Oct 2019 07:46:06 +0200 Subject: [PATCH] add slide for gitignore --- .../slides/ignore.md | 17 +++++++++++++++++ .../slides/list.json | 1 + 2 files changed, 18 insertions(+) create mode 100644 2019/2019-10-10_advancedGitTraining-SIU/slides/ignore.md diff --git a/2019/2019-10-10_advancedGitTraining-SIU/slides/ignore.md b/2019/2019-10-10_advancedGitTraining-SIU/slides/ignore.md new file mode 100644 index 00000000..7015bcd0 --- /dev/null +++ b/2019/2019-10-10_advancedGitTraining-SIU/slides/ignore.md @@ -0,0 +1,17 @@ +# Ignore files + +In the file `.gitignore`, all untracked files that should be ignored by `git` are listed: +``` +.DS_Store +data +*.csv +``` + +If you want to exclude certain files from this list: +``` +!*.yml +config/*.yml +``` +This tracks changes in all yml file, but not in the `config` folder. + +Examples: www.gitignore.io \ No newline at end of file diff --git a/2019/2019-10-10_advancedGitTraining-SIU/slides/list.json b/2019/2019-10-10_advancedGitTraining-SIU/slides/list.json index d14c9ece..fdf6a0f6 100644 --- a/2019/2019-10-10_advancedGitTraining-SIU/slides/list.json +++ b/2019/2019-10-10_advancedGitTraining-SIU/slides/list.json @@ -2,6 +2,7 @@ { "filename": "index.md" }, { "filename": "overview.md" }, { "filename": "gettingStarted.md" }, + { "filename": "ignore.md" }, { "filename": "amend.md" }, { "filename": "reset.md" }, { "filename": "revert.md" }, -- GitLab