Using nob and Neocities CLI together - nshebang/nob GitHub Wiki
Neocities CLI is a command line tool to upload files and easily "push" changes made to a local copy of your Neocities site. Nob is Neocities CLI-friendly.
Since Neocities CLI supports gitignore and nob stores all the files it needs to work in a single, hidden directory (.nob/), it's easy to push all your site files without uploading your Markdown drafts and templates by simply adding the nob/ directory (or directories) to a .gitignore file.
How to prevent entries/ and templates/ from being uploaded to Neocities
You need to create a file named .gitignore in your website root directory, that is, where the home page (index.html) is located. Then, add the paths of all the .nob/ directories in your website (one path by line)
Examples
📁 my_website
|_ 📁 my_blog
| |_ 📁 .nob
|_ 📄 .gitignore
The contents of the .gitignore file for the site shown above should be:
my_blog/.nob/
Multiple blogs
📁 my_website
|_ 📁 my_first_blog
| |_ 📁 .nob
|_ 📁 my_second_blog
| |_ 📁 .nob
|_ 📄 .gitignore
.gitignore:
my_first_blog/.nob/
my_second_blog/.nob/
When the root directory of the website is the same as the root directory of the blog
📁 my_site_is_a_blog
|_ 📁 .nob
|_ 📄 .gitignore
.gitignore:
.nob/