Skip to content

Update .gitignore to exclude unnecessary files#898

Closed
mahdirahimi1999 wants to merge 2 commits intojazzband:masterfrom
mahdirahimi1999:fix/gitignore
Closed

Update .gitignore to exclude unnecessary files#898
mahdirahimi1999 wants to merge 2 commits intojazzband:masterfrom
mahdirahimi1999:fix/gitignore

Conversation

@mahdirahimi1999
Copy link
Copy Markdown
Member

@mahdirahimi1999 mahdirahimi1999 commented Mar 28, 2025

Update .gitignore to Exclude Unnecessary Files

Description

This PR updates the .gitignore file to improve file exclusions and prevent unnecessary files from being tracked.

Changes

  • Added *.pid and *.DS_Store to ignore process ID files and macOS system files.

Let me know if any adjustments are needed! 👍

mahdirahimi1999 and others added 2 commits March 28, 2025 15:19
- Added *.pid and *.DS_Store to ignore process ID files and macOS system files.
Comment thread .gitignore
# macOS system files
*.DS_Store

# Process ID files
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.DS_Store means Desktop Services Store. It's a hidden file that macOS creates in folders to save things like icon position, window size, and folder layout.

We add *.DS_Store to .gitignore because:

  • It's not part of the code.
  • It can be accidentally committed by macOS users.
  • It adds unnecessary files to the project.
  • It's not useful for people using Windows or Linux.
  • macOS creates this file automatically when someone opens a folder, so it might get added without them noticing.

Copy link
Copy Markdown
Member Author

@mahdirahimi1999 mahdirahimi1999 Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.pid files store the Process ID of a running service or application (like a web server or background worker like celery). These files are temporary, system-specific, and should not be tracked in version control.

✅ Ignoring both helps keep the repository clean and free from unnecessary or machine-specific files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant specifically PID. Where in this repository are we generating PID files? Seems unnecessary

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, and I agree that adding *.pid is unnecessary. However, I wanted to point out that celerybeat.pid is already included in the .gitignore file under the Celery stuff section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants