Add .DS_Store to .gitignore
Hi,
Here is a patch to add the `.DS_Store` to the .gitignore to ignore the
`.DS_Store` file tracking by git when doing some development work in
the macOS terminal. It helps me and my community (Apache Cloudberry) a
lot. I hope this small patch can help you, too.
This is my first time sending the patch to PostgreSQL. If anything
needs to be improved, please let me know. Thanks!
Best,
Dianjin Wang
Attachments:
0001-Add-.DS_Store-to-.gitignore.patchapplication/octet-stream; name=0001-Add-.DS_Store-to-.gitignore.patchDownload
From dc123966b2556b3ad840eee3ecea04938f7120ac Mon Sep 17 00:00:00 2001
From: Dianjin Wang <wangdianjin@gmail.com>
Date: Thu, 10 Apr 2025 13:46:41 +0800
Subject: [PATCH] Add .DS_Store to .gitignore
Added .DS_Store to .gitignore file to prevent macOS system files from
being tracked by Git. This change helps to keep the repository clean and
avoid unnecessary files being committed under macOS dev environment.
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index 4e911395fe3..5417b7fa8d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,6 +31,7 @@ win32ver.rc
*.exe
lib*dll.def
lib*.pc
+.DS_Store
# Local excludes in root directory
/GNUmakefile
--
2.39.3 (Apple Git-146)
On Thu, 10 Apr 2025 at 18:05, Dianjin Wang <wangdianjin@gmail.com> wrote:
Here is a patch to add the `.DS_Store` to the .gitignore to ignore the
`.DS_Store` file tracking by git when doing some development work in
the macOS terminal. It helps me and my community (Apache Cloudberry) a
lot. I hope this small patch can help you, too.
There's a recommendation about what you could do about that in [1]/messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org.
David
[1]: /messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org
Hi David, thanks for the tip!
Best,
Dianjin Wang
Show quoted text
On Thu, Apr 10, 2025 at 2:10 PM David Rowley <dgrowleyml@gmail.com> wrote:
On Thu, 10 Apr 2025 at 18:05, Dianjin Wang <wangdianjin@gmail.com> wrote:
Here is a patch to add the `.DS_Store` to the .gitignore to ignore the
`.DS_Store` file tracking by git when doing some development work in
the macOS terminal. It helps me and my community (Apache Cloudberry) a
lot. I hope this small patch can help you, too.There's a recommendation about what you could do about that in [1].
David
[1] /messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org