git remove file from tracking but don't delete code example Example: remove file from git tracking git rm --cached <file_name>