Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import Github repository to PyCharm

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

like image 913
Johnny Metz Avatar asked Dec 07 '16 17:12

Johnny Metz


5 Answers

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.

enter image description here

like image 170
Younes El Ouarti Avatar answered Nov 15 '22 21:11

Younes El Ouarti


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.

like image 20
yole Avatar answered Nov 15 '22 22:11

yole


Use the menu, if you don't know how to get to the welcome screen:

VCS -> Get from Version Control...

enter image description here

like image 45
Kawu Avatar answered Nov 15 '22 21:11

Kawu


I want to show 2-step solution for PyCharm 2020

1- From the welcome screen, select Get from version control

enter image description here

2- Type URL on the box

enter image description here

Thats it!

like image 36
Ahx Avatar answered Nov 15 '22 22:11

Ahx


Another popular way on mac is to simply drag the cloned repository onto the PyCharm icon in the dock.

like image 28
Johnny Metz Avatar answered Nov 15 '22 23:11

Johnny Metz