templates-six | WHMCS Six Client Area Template Theme
kandi X-RAY | templates-six Summary
kandi X-RAY | templates-six Summary
Welcome to the WHMCS “Six” template repository! This repository is dedicated to providing version-by-version changes of the “Six” template as published in WHMCS. Sharing these changes through GitHub as a read-only repository enables you to quick inspect and import these changes for your custom theme.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of templates-six
templates-six Key Features
templates-six Examples and Code Snippets
Community Discussions
Trending Discussions on templates-six
QUESTION
I'm starting by telling you I'm confused. I know what I think I want to do but I'm not even sure how to go about doing it.
What I think I want to accomplish is to clone a public repo from Github but have that repo be stored on a different machine than the one I'm sitting at.
Or maybe you tell me - ...
There is a public Github repo - a template for a web app (https://github.com/WHMCS/templates-six)
- I need to clone this repo (and also be able to keep pulling future changes and updates to it)
- I need to be able to modify this repo on my (Windows) workstation at home
- I need to be able to keep my modified repo on my [shared hosting] web server. (access by ftp or ssh over Internet only)
- I don't want to have to login to the web server separately to push/pull/sync changes; this should be in sync automatically. Since I don't actually need the changes locally (I can't run the app locally, only on the Webserver) I think my 'local' repo should just live on that filesystem but maybe this assumption is wrong.
- If there are ever any conflicts, I need to be able to resolve them without clobbering my local files and possibly without ever accepting changes from the upstream.
I've tried searching (here, google, github help docs, others) but I think maybe the terminology keeps messing me up and I'm not finding my scenario. Between locals and remotes and clients and repos and forks I've lost my way. Or maybe it's impossible? idk.
I'd appreciate someone explaining how to do this if it can be or, if it's really just simple/basic stuff, then just point out please the right terminology at each end and I'll go back to searching it out.
Or maybe I've really scrambled it all in which case suggest a way to approximate the end result.
Thanks
...ANSWER
Answered 2018-Aug-30 at 03:08This is actually pretty straightforward with Git. There are many ways to do it; here is what I would do:
- Clone the repo onto your workstation, wherever you want the project to live.
git clone git@github.com:WHMCS/templates-six.git
- Now,
cd templates-six
. From here on out, we'll be running our git commands inside this repository folder. - By default, git created a remote named
origin
. For clarity, we're going to rename it. Rungit remote rename origin github
- Create a bare repository on your shared hosting webserver. Call it whatever you want. There may be a way to do this in the UI, or you can do it in the terminal with something similar to
git init --bare foobar.git
. - Back on your own workstation, add the shared webserver as a remote. You'll need to figure out the appropriate address to use here, but it should be similar to this, which uses SSH (same as you'd use to log in).
git remote add webserver ssh://joelaz@sharedhost.com:/home/joelaz/foobar.git
- Push
master
branch up to the webserver.git push webserver master:master
. If that doesn't work for some reason, it should be safe to try-f
, since there's no history you care about on the remote server. - I'd set the upstream branch to your own webserver.
git branch -u webserver/master
. Now, by default,git push
will push to your webserver.
With this setup, whenever you want to get updates from Github, you can git fetch github
and then git merge github/master
, which merges github
's master branch into your own local master branch. Finally, as before, git push
sends it to your webserver. You'll have to maintain the code on your workstation (which is probably a good idea anyway), and you'll make changes and fix merge conflicts there before pushing the code to webserver
with git push
.
To help you understand what's happening, keep in mind that each of the 3 repositories (Github, workstation, server) maintains its own copy of the code, and it's own copy of any branches. You move code between the repositories by pulling and pushing from the repository on your workstation.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install templates-six
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page