how to untrack files i =n git code example Example 1: git untrack file git rm --cached filename Example 2: git untrack file git rm -r --cached