Saturday, 2 February 2013

After adding gitignore, remove unwanted files

First, commit any outstanding code changes, and then, run this command:

git rm -r --cached .

This removes everything from the index, then just run:

git add .

Commit it:

git commit -m ".gitignore is now working"

No comments:

Post a Comment