delete tracking git code example Example 1: remove from git tracking git rm --cached <file> Example 2: remove from git tracking git rm -r --cached <folder>