It does not seem to work, I had the same problem.
That was my way:
- Create a new github organization repository and name it as your local project
- Open PyCharm and check the organization project in a directory different from your PyCharm project project (if there is a local project with the same name)
- PyCharm
- PyCharm .idea( IDE PyCharm) .gitignore
- , !
- ( )
, git - .