The command below makes Git
forget
about
test.php
that was tracked but is now in
.gitignore
git rm --cached test.php
The command makes Git
forget
about all files under
docs
directory that was tracked but is now in
.gitignore
git rm -r --cached docs/
by Valeri Tandilashvili
4 years ago
Git
1
Pro tip: use ```triple backticks around text``` to write in code fences