git remove chached code example Example: git remove chached git rm -r --cached '~' // for remove directory