git how to permanently untrack a file code example Example: how to untrack a file in git git rm -r --cached <file>