I have committed a large number of files and folders to a git repository, but realized all of the temporary files ending in ~ have also been committed. I would like to remove these recursively. I have tried

```
git rm -r *~

```

Unfortunately this does not look through each subfolder to remove these files.

What is missing here?