jcadima
4/24/2016 - 10:45 PM

Remove files from git project

Remove files from git project

http://stackoverflow.com/questions/107701/how-can-i-remove-ds-store-files-from-a-git-repository



This is to remove files that we dont want to be uploaded to the project,
files such as .DS_STORE 

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

then create .gitignore

add the following:
  .DS_Store
  any-other-files-that-will-be-ignored
  
  
git add .gitignore
git commit -m '.DS_Store removed'