Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git remove .ds_store from commit

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

//Add this line to the file .gitignore:

.DS_Store

//Create `.DS_Store` file in the root of the project.
echo .DS_Store >> .gitignore

//Commit file
git add .gitignore
git commit -m '.DS_Store banished!'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #remove #commit
ADD COMMENT
Topic
Name
2+6 =