7 ms·
git can be configured to ignore .DS_Store by default - in your home directory, make a .gitignore file using the usual format, then do "git config --global core.
by bacon_waffle 6y ago
git can be configured to ignore .DS_Store by default - in your home directory, make a .gitignore file using the usual format, then do "git config --global core.excludesfile ~/.gitignore".
- lilyball 6y agoBetter still is to put it in ~/.config/git/ignore and leave your core.excludesFile unset, as that's the default path and will therefore live right next to your config file.
- manquer 6y agoall your team members have to also to do this, some of them like designers are not always comfortable in the command line
- NullPrefix 6y ago~/.config/git/ignore is a text file, not command line
- manquer 6y agoBy default “.” Folders are hidden in Finder , either they need reconfigure their Finder settings , or just copy paste a echo pipe in terminal. Both options are cumbersome to get others to do. They also have to redo everytime they reset their system. Since Mac will not show the folder in Finder they won’t even notice when they don’t do it , it is annoying for the rest of us.
- saithir 6y agoIt sounds like you should just stop being bad at teaching your team members.
- def8cefe 6y agoIf an individual is unable to figure out how to show dotfiles in Finder on MacOS do you really want them making commits?
- manquer 6y agoWell it is preferable than getting a bunch of emails with filenames like (Copy)(Copy)_final_(11)__27th June. Git should not be limited to few folks who understand version control, there is a lot value for people who can just it linearly for collaborative history tracking
- efreak 6y agoIn windows and Linux you can still open hidden folders and files simply by typing the hidden path element into the file manager. You still won't see any hidden contents, but you don't need to type out the full path--just navigate to your user folder, and type `./.config` in it to enter it.
- manquer 6y agoThe whole problem is with Mac adding arbitrary contents to folders which may be used by other operating systems! Like the MS of the past, Apple does not care about compatibility unless they forced to.