How can I remove those annoying Mac OS X .DS_Store files from a Git repository?
How can I remove those annoying Mac OS X .DS_Store files from a Git
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Remove existing
.DS_Storefiles from the repository:Add this line:
to the file
.gitignore, which can be found at the top level of your repository (or create the file if it isn’t there already). You can do this easily with this command in the top directory:Then commit the file to the repo: