how to create and delete file use git base 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