Want to Learn Gatsby? Just Read the Docs!

On the weekend I spent time learning about Gatsby. For people who don’t know, Gatsby is a React based site generator.

Usually, when I try and learn new tech, I often avoid the official documentation and look for videos on YouTube or a free course. This is a bad habit of mine because most projects have proper documentation these days.

However, the Gatsby documentation is outstanding, especially the tutorials. So if you want to learn how to use it, then I’d start with the “Gatsby.js Tutorials” section and work your way through it.

Add Files to Git Which are Ignored via .gitignore

In a recent project, I needed to add a file which was in a folder that was ignored using the .gitignore file.

Now I could edit the .gitignore file, commit the file, then edit the .gitignore again. But this seemed like a cumbersome way to do it.

Luckily I found that the git-add command has a --force option.

-f --force
Allow adding otherwise ignored files.

For example:

git add --force ignored-file.php

Enjoy.