1

Possible Duplicate:
git - removing a file from source control (but not from the source)

I have a .DS_Store file that is in the path project/app/assets/javascripts.

How do I remove from this file git tracking?

Community
  • 1
  • 1
keruilin
  • 15,808
  • 32
  • 106
  • 174

1 Answers1

4
 rm .DS_Store
 git add -A
 git commit -m "getting rid of artifact."
 echo .DS_Store >> .gitignore
 git add -A
 git commit -m "ignoring artifact."
Adam Dymitruk
  • 117,004
  • 25
  • 140
  • 137