how to remove from tracking a txt file in git code example Example: remove file from git tracking git rm --cached <file_name>