Cannot see Git repository in cPanel Git™ Version Control module

Josh Fialkoff

Registered
Jun 18, 2019
3
0
1
Boston, MA
cPanel Access Level
Root Administrator
I cannot see any repositories in the cPanel Git™ Version Control module, even though the files were successfully pulled from the remote and are visible in the file system.

I am trying to setup deployments via cPanel using cPanel's Git deployment system (see for example: Guide to Git - cPanel Knowledge Base - cPanel Documentation).

After I encountered errors cloning the remote repository from GitHub using SSH, I found that it is a GitHub problem that their system prefers an HTTPS connection rather than SSH:Error: Permission denied (publickey) - GitHub Help I connected this way, and it worked (e.g., I did not get the permission denied error) (see code)

But, apparently because I used HTTPS rather than SSH, I cannot use the visual interface in this screenshot: [Moderator Note: The remote image URL was removed. Please upload images as attachments directly to the thread]

So, my question is, how do I now get the repository to appear in the interface, so that I can use the visual interface, and NOT USE terminal, to manage deployments?
Code:
username@host ~]# ssh-add /home/username/.ssh/lwtogithub.tld

Enter passphrase for /home/username/.ssh/lwtogithub.tld: [username@host ~]# git clone https://github.com/username/forwardjump-genesis-child.git Cloning into 'forwardjump-genesis-child'... Username for 'https://github.com': username Password for 'https://[email protected]': remote: Enumerating objects: 762, done. remote: Counting objects: 100% (762/762), done. remote: Compressing objects: 100% (267/267), done. remote: Total 762 (delta 480), reused 758 (delta 479), pack-reused 0 Receiving objects: 100% (762/762), 771.86 KiB | 8.04 MiB/s, done. Resolving deltas: 100% (480/480), done. [username@host ~]#
I would like the repository to appear in the cPanel Git™ Version Control module as in this screenshot:

https://blog.cpanel.com/wp-content/uploads/2018/06/image2018-3-23_9-48-58.png
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello @Josh Fialkoff,

Thank you for taking the time to share additional details in your support ticket. The ticket is currently open and should receive an additional response from one of our Technical Analysts shortly. In the meantime, I took a look at the attached screen capture video included in your ticket (this was super helpful by the way, thanks for including it). Can you verify if the public SSH key associated with your private GitHub.com repository is added to the /home/user/.ssh/known_hosts file?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello @Josh Fialkoff,

Per the support ticket, it looks like this was solved by using the SSH Git URL as opposed to the HTTPS Git URL. Can you confirm if everything is now working as intended? Once confirmed, I'll update your StackOverflow thread with the outcome.

Thanks!