git clear branch cache after switching code example Example: git rm cached $ git rm --cached filename