.gitignore sample file

create .gitignore in the root of your project and add the following content:

# Ignore compiled executables and object files
*.exe
*.o
*.obj

# Ignore temporary files and editor backups
*~
*.bak
*.tmp
.DS_Store # macOS specific
Thumbs.db # Windows specific

# Ignore specific directories
build/
dist/
node_modules/
vendor/

# Ignore log files
*.log

# Ignore sensitive configuration files
config.local.js
.env

# Ignore specific file types anywhere in the project
*.zip
*.tar.gz

# Exception: don't ignore important.log even if other .log files are ignored
!important.log

# Ignore everything in the 'data' directory except for 'data/important_data.csv'
/data/*
!/data/important_data.csv