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
  • 16,782
  • 34
  • 108
  • 175

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
  • 124,556
  • 26
  • 146
  • 141