Git elimina el chacheed
git rm -r --cached '~' // for remove directory
Powerhudaman
git rm -r --cached '~' // for remove directory