remove file from tracking and from git history code example Example: remove file from git tracking git rm --cached <file_name>