How to use Git on cPanel via SSH

You can also access your Git Repo  via SSH on cPanel

  • Login to your hosting account using your username and password.
  • Under the advanced section, click on the "Terminal"
  • On the terminal screen, change your working directory to the location where you wish to upload your files. E.g. cd /home/username/public_html
  • Clone a git repository by running git clone http://link_to_git_repo

 

After these steps have been followed, your files will be uploaded to the specified location.

Was this article helpful?