Hands-on task
This task is step 17 of the course “Everyday Git”
Figure out which rule ignores the file
In /root/repo the file logs/app.log isn't under version control — the .gitignore rules ignore it. There are several rules, they live in more than one file, and more than one matches this path. Figure out which exact rule (pattern) ends up ignoring logs/app.log, and write that pattern into the file /root/answer.txt.
Reference:git
What you'll practise:
- gitignore
- git check-ignore
- rule priority
- ignore patterns
- debugging ignore