Search code examples
githubpycharm

Pycharm -- how can I push a local project to a remote organization repo?


I can push to my personal github account, but I am trying to push to an organization repo. How can I configure Pycharm to use an organization repo instead of a personal one? Thanks.


Solution

  • This seems not to work, I had the same problem.

    This was my workaround:

    1. Create a new github organization repository and name it like your local project
    2. Open PyCharm and checkout the organization project into a directory different from your PyCharm project directory (if your local project with the same name lies there)
    3. Close PyCharm and copy all files and folders from the checked out organization repository into your local project folder
    4. Open your local project in PyCharm and add the .idea folder (with contains your PyCharm IDE project information) to the .gitignore file
    5. Finally commit and push your local project content to your organization repository!
    6. (Don't forget to delete the your former checkout folder)

    This works because all git-paths are relative.