removing file after adding to gitignore code example Example: git remove file from gitignore git rm --cached