Reputation: 6055
I currently have a github repository cloned to my Desktop. I want to import it as a new Project in PyCharm.
Is this as simple as moving the repo under the "PyCharmProjects" folder or do I need to import it through some PyCharm feature?
Also is there a way to import a Github repository to PyCharm directly from Github (e.g. it isn't cloned to my local machine)?
I have the PyCharm Community Edition 2016.3
Upvotes: 16
Views: 77104
Reputation: 2354
In PyCharm version 2021.2 the menu item "VCS" does not exist anymore. Instead go to Git > Clone ...
and then you'll reach the window, where you can enter the URL of your repository.
Upvotes: 3
Reputation: 2415
In the latest 2021.
Make sure you're signed into Github already through IDE.
Then,
Toolbar --> Clone --> Add the Github URL or select "GitHub" and the projects in the repository will be listed.
Select the required and the project will be cloned to your desktop.
I hope the answer serves your purpose.
Upvotes: 0
Reputation: 14003
Use the menu, if you don't know how to get to the welcome screen:
VCS -> Get from Version Control...
Upvotes: 6
Reputation: 8005
I want to show 2-step solution for PyCharm 2020
1- From the welcome screen, select Get from version control
2- Type URL on the box
Thats it!
Upvotes: 4
Reputation: 6055
Another popular way on mac is to simply drag the cloned repository onto the PyCharm icon in the dock.
Upvotes: 1
Reputation: 97338
You don't even need to move it. Simply select "Open directory" and point to the cloned repository.
You can perform a GitHub checkout directly from PyCharm (VCS | Checkout from Version Control | GitHub), but it will have the same effect: it will ask you where to clone the repository, clone it locally, and then open it as a project.
Upvotes: 27