How to connect github desktop with cpanel

余生长醉 提交于 2019-12-20 05:49:10

问题


I have a repository on cpanel and connected with my local PC. When I do changes in any of the file I go to cmd, type git commit -a , git push ......it asks my cpanel password and I enter and successfully push the changes to cpanel and my website changes are appeared

But I want to commit changes from GitHub Desktop to cpanel repository instead of typing commands via cmd.

Do I need to create an online github account and create a repository with same name there and connect with that?

Also I have enabled ssh-key but still the Github Desktop says Authentication error when I try to push to origin. In my origin the path is : ssh://user@mydomain.com/myfolderpath


回答1:


If you are relatively new to GitHub and git, it would be best to just create the repository on GitHub and set up the ssh (or just do url cloning if the repo is not private) for it using the cmd. Use this ssh on Cpanel to be able to push to github and have cpanel update based on the github.



来源:https://stackoverflow.com/questions/58541604/how-to-connect-github-desktop-with-cpanel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!