Using Git With Namecheap Web Hosting: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== 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 t...") |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Git]] [[Category:Web Development]] | |||
== Overview == | == 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: [https://community.namecheap.com/forums/viewtopic.php?f=7&t=6242 Using Git on Namecheap - what is the remote path?] | 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: [https://community.namecheap.com/forums/viewtopic.php?f=7&t=6242 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 == | ||
| Line 13: | Line 17: | ||
(Source: [https://community.namecheap.com/forums/viewtopic.php?f=7&t=6242 Using Git on Namecheap - what is the remote path?] (Namecheap forums)) | (Source: [https://community.namecheap.com/forums/viewtopic.php?f=7&t=6242 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. | |||
Revision as of 18:07, 12 September 2014
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.