Home > Enterprise >  How to git clone in intellij
How to git clone in intellij

Time:12-02

I tried to upload my project to the Git server, so I made a Git clone like the picture below.

(Not Git Hub, only Git Server)

enter image description here

I expected a project to be created in the picture above so that all classes in the Directory, configuration files (build.gradle, etc.) could be committed to the git server, but an empty project was created as shown in the picture below

How can I transfer my source code that I've worked on so far to the project in the picture below?

enter image description here

CodePudding user response:

First, make sure your Directory include \

C:\Workspace\...
# not
C:Workspace...

Second, when cloning a repository from the main menu, make sure the target directory does not exist or is empty.

  • Related