Code Element Ug

Force git to Update After Changing gitignore

After making changes to your .gitignore file, you can force git to update by clearing the git cache then staging and committing all files.

# Clear git cache
$ git rm -r --cached .

# Stage files
$ git add .

# Commit everything
$ git commit -m "Updating .gitignore"