Pages

Wednesday, March 12, 2014

Updating git repo with changes in .gitignore

When .gitignore file is updated, the changes do not appear to take effect in the output of git status. Following set of commands will update git with the changes.

git rm -r --cached .
git add . --all
git commit -am "Updated .gitignore"

Note that these commands must be executed in your project root.


No comments:

Post a Comment