Using Git With Namecheap Web Hosting

From Littledamien Wiki
Revision as of 18:07, 12 September 2014 by Video8 (talk | contribs)
Jump to navigation Jump to search


Overview

I'm not sure this is possible with shared servers. I know I read in their forums at one point that they did not support it, but I just looked again and found this in the forums: Using Git on Namecheap - what is the remote path?

The status message that git give in response to the command seems normal, but no files are updated.

I think this is because the Git repository on damienjay.com is not synced to the repo on the development server. This seems like it's only possible with a git clone from the production server, but I haven't been able to get that to work yet.

Git push

> git push ssh://username@server56.web-hosting.com:21098/home/username/public_html/path/to/git/project [branch]

(Source: Using Git on Namecheap - what is the remote path? (Namecheap forums))

Git pull

The ssh server has to be running on littledamienii.

  • Bitvise SSH Server (formerly WinSSHD)
    • Bitvise SSH Server does not start up automatically.
    • Manually start server: Server tab > Start WinSSHD
    • N.B. that it is not using the default port number.
  • Router
    • The ssh port has to be enabled on the router.