what is git rm cached code example Example 1: gitigore rm cache git rm -r --cached . Example 2: git rm cached $ git rm --cached filename