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 an
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.