Search code examples
gitintellij-ideagitlabclone

how to fix bug in gitlab clone?


I am trying to clone a repository from gitlab using IntelliJ IDEA, the repository that I mention has two branches, when I try to clone the branch using SSH or HTTPS, it does not generate any error, but when looking at the folders generated in IntelliJ the project appears empty. I already generated the key to connect via SSH.

enter image description here


Solution

  • I already generated the key to connect via SSH.

    The you would need to use a [email protected]:xxx SSH URL, instead of the HTTPS URL shown in the screenshot.

    Try and clone it in command-line first, without using IntelliJ IDEA and see if you see files then:

    git clone -b develop [email protected]:<me>/<arepo>
    cd arepo