From 3ee325c3f63dc6db6e5b2648bb9dfd4f8e4914bc Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Wed, 11 Jan 2023 08:47:12 +0100 Subject: [PATCH] Extend gitignore slide - Added example for .gitignore file - Added note about personal ignore patterns --- day1/03_Basics/05_Gitignore.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/day1/03_Basics/05_Gitignore.md b/day1/03_Basics/05_Gitignore.md index 43f5e1b..97c0b28 100644 --- a/day1/03_Basics/05_Gitignore.md +++ b/day1/03_Basics/05_Gitignore.md @@ -1,10 +1,19 @@ !SLIDE smbullets # Exclude files with .gitignore -* Build directories from source code compilation (e.g. `debug`, `release`) +* Build directories from source code compilation (e.g. `debug/`, `release/`) * Files generated at runtime (e.g. test results or stats) +* Temporary files (e.g. `*.tmp`, `temp/`) * User specific IDE settings -* Local Vagrant boxes and other temporary files + +Example: + + cat .gitignore + release/ + *.tmp + .idea + +Personal ignore patterns can be defined in `.git/info/exclude` ~~~SECTION:handouts~~~