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.
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
Allow adding otherwise ignored files.
git add --force ignored-file.php
$ zip -r drupal.zip html
This zips all files and directories.
- -r:Includes all files and directories -> Files
- drupal.zip:The zip file you want to create
- html:The folder you are targetting or use * if your currently in the folder.