Saturday, March 30, 2013

.gitignore file isn't working as expected

# Run the following command (this removes everything from the index):
git rm -r --cached .

# Then, run:
git add .

# Finally, commit your changes:
git commit -m ".gitignore is now working"
Note, this answer's source came directly from http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring.

No comments:

Post a Comment