If you've accidentally committed a file or folder to your GitHub repo and don't want it there, here's a solution.
Git mishaps can happen to the best of us! Let's assume you've committed ".????" folder (created by JetBrains IDEs)
To remove it from remote git repo
1. Blacklist the ".????" folder by adding the “.????” folder to the .gitignore file in ?????? branch, then commit this change. ??? ?????? -? "?????? ???????"
2. In your branch, check this file out from master branch using ??? ???????? ?????? -- .?????????
3. Remove the .idea folder from the git tree ??? ?? --?????? -? .????
4. Commit this change to your branch and push it to GitHub ??? ?????? -? "?????? ???????" ??? ???? ?????? ??????
This will work to any remote repository, not just GitHub



