3

I starting a new project.

And me and my members use github to share code.

However, since we all use OSX, every folder each of us made has .DS_Store file.

Currently, we personally remove every .DS_Store file for every commit.

.DS_Store file does effect on code, but it is cause of conflict.

Is there handy way to restrict upload .DS_Store extension in github.com?

Thanks:D

Juneyoung Oh
  • 7,318
  • 16
  • 73
  • 121

1 Answers1

3

Add the following line to the .gitignore file at the root of the project:

.DS_Store

and commit the file. Then git will ignore those files.

See How can I Remove .DS_Store files from a Git repository? for how to remove the already committed .DS_Store files.

Community
  • 1
  • 1
JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255