Wednesday, September 15, 2021

Git: How to remove and Ignore DS_Store file

 When you work with Git  in a Mac. You might notice  .DS_Store file is added to your git commit unintentionally. 


Remove .DS_Store File 

If the  DS_Store File already added to your git report. first remove the file.

find . -name "*.DS_Store" -type f -delete
https://askubuntu.com/questions/377438/how-can-i-recursively-delete-all-files-of-a-specific-extension-in-the-current-di

Ignore .DS_Store File in your git commit

And let git know that you want to use this file for all of your repositories:


Find Details here : git ignore

No comments:

Post a Comment

5 Strategies for Getting More Work Done in Less Time

Summary.    You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...