.gitignore for Hexo

5 ignore rules for Hexo, ready to copy into your repository.

Fast, simple blog framework

The complete .gitignore for Hexo

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2025-08-31 22:43:09 UTC
# Technologies: Hexo

### Hexo ###
public/
# Temporary files directory
tmp/
.tmp*
db.json
.deploy*/

What these Hexo rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

Ignore generated directory

Pattern What it ignores
public/ Ignore generated directory

Ignore temp files

Pattern What it ignores
tmp/ Temporary files directory
.tmp* Ignore temp files
db.json additional files
.deploy*/ Ignore temp files

How to use this .gitignore for Hexo

  1. Copy the Hexo rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other Framework .gitignore templates

See every Framework template