

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Gitignore
incomplete
2: Nested Gitignore
incomplete
3: Patterns
incomplete
4: What to Ignore
incomplete
This lesson's interactive features are locked, please to keep using them
We've talked about how to ignore files, but the deeper question is what should you ignore? Here are some rules of thumb for coding projects:
node_modules, venv, packages, etc.).env files, passwords, API keys, etc.)We've covered a lot of Git basics so far. There's certainly more you can learn, but now you have a solid foundation to work with as a developer. If you want more, there is a Part 2 of Learn Git where we cover more advanced topics.
Let's ignore a generated file. We ignore generated files because they can easily be regenerated from the stuff we do track. In this case, we're going to use Pandoc to generate HTML from a Markdown file. We'll ignore the HTML file, but commit the Markdown file.
brew install pandoc
sudo apt install pandoc
# WebFlyx: The Future of Content
You thought you knew what the web was capable of. You were _wrong_. WebFlyx is taking the world of online entertainment to an entirely new level. Grab a copy of it at your local electronics store today!
**Available on Floppy Disk!**
_While supplies last._
pandoc advert.md -o advert.html
explorer.exe advert.html
open advert.html
xdg-open advert.html
Run and submit the CLI tests from the root of the project.
If you accidentally staged or committed advert.html, adding it to the .gitignore file won't remove it from the repository. You'll need to remove it manually (at which point it will continue to be ignored going forward):
git rm --cached advert.html