DEV Community

Cover image for how to remove .DS_Store from repository
vatana7
vatana7

Posted on

how to remove .DS_Store from repository

Introduction

Just as you know if you develop your application on MacOS, at one point you will accidentally add this annoying file into your Github repository.

To get rid of it just head onto your repository using any terminal and then run below command:

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
Enter fullscreen mode Exit fullscreen mode

After this, make sure you git ammend the last commit and git push --force to remove .DS_Store successfully.

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay