remove files 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
Example 3: git remove from folder
rm -rf .git
Example 4: gremove folder from git
git rm -r --cached FolderName
git commit -m "Removed folder from repository"
git push origin master
Example 5: git remove file
git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch]
[--quiet] [--pathspec-from-file=<file> [--pathspec-file-nul]]
[--] [<pathspec>…]