how to remove a file from git so it doesn't haunt you code example
Example 1: remove folder from repo but keep locally
git rm -r --cached File-or-FolderName
git commit -m "Removed folder from repository"
git push origin master
Example 2: delete file from a branch git
git rm --cached file1.txt
git commit -m "remove file1.txt"
Example 3: delete file from a branch git
git rm file1.txt
git commit -m "remove file1.txt"