train55255
train55255

Reputation: 49

Trying to host local website

I am trying to host my local website on github pages I currently have the upload folder next to the readme and the index.html that says Hello World. This is currently what I have.

https://i.sstatic.net/EfrQ6.jpg

How can I move all the stuff in the folder to the same level as that index.html? Literally my whole website is in that folder with all the pictures, css, and js. I am new to github so baby steps are needed. Thanks for the help!

EDIT: I have cloned the branch, but now when I try to move it I get an error.

fatal: destination exists, source=upload/index.html, destination=index.html

nvm debugged it had to remove index.html first

Upvotes: 0

Views: 44

Answers (1)

VonC
VonC

Reputation: 1323125

You can clone that GitHub repository, and (once cloned locally), do a:

cd /path/to/my/clone
git rm index.html
git mv upload/* .
git commit -m "move upload content"
git push

Upvotes: 2

Related Questions