https://github.com/tomashubelbauer/git-dot-ds_store-global-ignore
Information on how to hide the infamous .DS_Store macOS file using the global Git ignore configuration option.
https://github.com/tomashubelbauer/git-dot-ds_store-global-ignore
dsstore git git-ignore macos
Last synced: 3 months ago
JSON representation
Information on how to hide the infamous .DS_Store macOS file using the global Git ignore configuration option.
- Host: GitHub
- URL: https://github.com/tomashubelbauer/git-dot-ds_store-global-ignore
- Owner: TomasHubelbauer
- Created: 2023-05-21T17:06:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T17:07:07.000Z (about 2 years ago)
- Last Synced: 2024-12-31T22:13:33.376Z (5 months ago)
- Topics: dsstore, git, git-ignore, macos
- Homepage: https://hubelbauer.net/git-dot-ds_store-global-ignore/
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git `.DS_Store` Global Ignore
Here's how you can ignore changes to the dreaded macOS `.DS_Store` files across
all repositories by adding the ignore pattern to the global Git ignore file.First, find where the global Git ignore file lives:
```sh
git config --get core.excludesfile
```I found this on Stack Overflow: https://stackoverflow.com/a/22885996/2715716
It is not the top answer.At first, this path is unset.
At the provided link I found a mention that a typical path for this file is at
`~/.config/git/ignore`.To set this global ignore file path, this command is used:
```sh
git config --global core.excludesfile ~/.config/git/ignore
```Simply append `.DS_Store` to this file and re-run the respective Git CLI command
or refresh the VS Code source control pane.