Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDEA IntelliJ git clone

I am new to git and IntelliJ. I would like to get the source code for a project from a remote git repository and work on it using IntelliJ. I am use to Eclipse and SVN which has a "Checkout as Project" dialog.

I tried using "Check out from version control" but w/o any success.

  • As the "GIT Repo URL" I entered git+ssh://[email protected]:/var/git/myProject
  • As the "Parent Dir" I added local directory /home/myName
  • As the "Dir Name" I added myProject

I pressed the clone button and nothing happend on the IDE. It does create the directory /home/myName/myProject with the .git configs but nothing has been fetched from the remote repository nor has the "New Project" Wizzard come up.

Can someone shed some light on how this would be done using IntelliJ and Git compared to Eclipse and SVN? I am using IDEA 10.5 and Fedora LINUX OS.

like image 260
soappatrol Avatar asked Feb 24 '23 21:02

soappatrol


2 Answers

With IntellIJ 12.0.3 VCS/Check out from Version Control/Git

Check out from Git on Mac

like image 99
gabuzo Avatar answered Feb 26 '23 10:02

gabuzo


With intelliJ, there is always going to be something that could do with improvement. In this particular instance, you will have a fetching progress indicator at the bottom of your window.

If you create a blank project (with no modules) first, then use the Version Control -> Checkout from version control -> Git, you will have a "version control" tab at the bottom of your window where you can at least see the commands sent to git. There is still no progress shown, and if you are lucky like me, it'll sit there silently for ages while git drip feeds the repo with 40kb/s (and we're on a 100 MB connection).

Eventually, it'll allow you to then create a new project for this repo and the tags/branches in your repo will spew out in the version control info panel (that other tab). It works, but its too damn quiet.

like image 29
David Vaughan Avatar answered Feb 26 '23 11:02

David Vaughan