how to remove files on add from git code example Example 1: git remove all pdf files git rm -r */*.pdf Example 2: how to remove stuff from git git rm -r File-Name