git remove code example
Example 1: remove git
rm -rf .git
Example 2: git ignore remove
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
Example 3: git rm cached
$ git rm --cached filename
Example 4: delete file from a branch git
git rm --cached file1.txt
git commit -m "remove file1.txt"
Example 5: git remove all pdf files
git rm -r */*.pdf
Example 6: how to remove stuff from git
git rm -r File-Name