Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 10

How to transfer Local Wordpress site hosted on github

So i have been looking for hours for a simple guide on how to upload online a local wordpress website hosted by github. I have github student, a domain, a working local site and I have managed to type hello world on my page chrisliaskonis.me. I left it at the point where i had the repository inside my theme in the wordpress folder but the desktop github app didnt allow me to sync because of "wrong endings CHL" or something, I couldn't get passed that. Also the desktop github app doesnt find the git coding app, i have tried many things, can someone point me to the right and EASY guide?
9 Replies
Pilot Lvl 3
Message 2 of 10

Re: How to transfer Local Wordpress site hosted on github

Hey there @chrisliaskonis, maybe I can help you here!

 

Right now, GitHub Pages only supports static sites (sites that don't change without the code being changed) 🙂 Unfortunately, Wordpress sites run on PHP which isn't able to be hosted by GitHub. Regarding this error that you're getting, would you be able to send over a screenshot of this error message or even a video of it?

Copilot Lvl 2
Message 3 of 10

Re: How to transfer Local Wordpress site hosted on github



when i am trying to "commit to master" in the github app i get the error  also when i am trying to open command prompt from the github app it says that i havent installed git which i have, so i am stuck at a point where i have the repository in my localhost/theme and i dont know what to do

"Warning: line endings have changed from 'LF' to 'CRLF 

Pilot Lvl 3
Message 4 of 10

Re: How to transfer Local Wordpress site hosted on github

Thanks for that @chrisliaskonis,

 

Have you recently changed devices (i.e. from Mac to Windows)? Also, what operating system are you currently using?

 

Just let me know, and I'll see what I can suggest! 

Copilot Lvl 2
Message 5 of 10

Re: How to transfer Local Wordpress site hosted on github

i have always used windows 8.1 and one machine

Pilot Lvl 3
Message 6 of 10

Re: How to transfer Local Wordpress site hosted on github

Gotcha @chrisliaskonis,

 

Are you able to force Git to push the files to GitHub by using the commands here? Keep in mind that by force pushing to GitHub, things can go wrong 🙂

 

 

Copilot Lvl 2
Message 7 of 10

Re: How to transfer Local Wordpress site hosted on github

Hi,

Is there any alternative to importing wordpress into github. I am having an older version of wordpress  website currently planning build a new website. Suggest to me which platform to develop to get hosted on github. 

Pilot Lvl 3
Message 8 of 10

Re: How to transfer Local Wordpress site hosted on github

Hey there @lisa875,

 

I'm not aware of any tools that allow you to convert a WordPress site to a static site as needed by GitHub Pages, but most functionality would be lost if there was anyways, simply because it's now static. If you're planning on building a new website, simple HTML + CSS + JS/Angular/Vue/whatever is likely your best port of call! 

 

Pilot Lvl 1
Message 9 of 10

Re: How to transfer Local Wordpress site hosted on github

Some years ago I was using wordpress for my personal website, and then I discovered GitHub pages for migrate it. Unfortunately Workdpress is based on php/mysql, and GP it's only for static websites.

 

I found useful this feature for help to local communities to get a website and a blog post open for their members in a GitHub Organization, maybe at the beginning it look like more complicated that have a web interface for configure, but it's a great option for learn about git, submodules and GitHub, and make a little project open source. my last recent work was the iOS Developers MX blog, you could see this project here. I made this using Go Hugo, but you can use other static generators as Jekyll for example. 

 

I think that GitHub pages it's a powerful option for mount sites. 

 

This are the design illustrations for the go hugo blog:

 

IMG_0090.pngIMG_0088 (1).png

 

Copilot Lvl 2
Message 10 of 10

Re: How to transfer Local Wordpress site hosted on github

Can i use my blog (Education) as Github blog? Is it necessary to first convert blog to Wordpress? What is the necessary steps to transfer static Wordpress site usig Github.