You're on the main page for a repository called pages-example
.
Think of this repository like a folder on your computer. In JNL 221, you're frequently organizing our HTML, CSS and content files for different projects in one folder. Once everything is working the way you want it to locally (meaning on your own machine), you can upload those files to a Github repository and maintain the organizational structure you used there.
├── images/
│ ├── Armorysquaresyr.jpg
│ ├── Destiny_USA.png
│ └── Syrcityhall2.jpg
├── main.css
├── index.html
├── other.html
└── README.md (the file you're reading)
-
File names matter. Even a slight difference will throw things off.
index.html
is different thanindex(3).html
andINDex.HTML
-
Paths to files matter. If I want to show the image
Armorysquaresyr.jpg
in my HTML file, I have to point towardimages/Armorysquaresyr.jpg
because it's located inside a folder. (More on file paths.) -
Your core HTML file should be named "index.html". The URL for this repository is https://richardsalex.github.io/pages-example/ and will go directly to
index.html
. -
Changes may not be instantaneously reflected online. If I'm getting a 404 page when I go to the above URL, I can try visiting the pages individually: https://richardsalex.github.io/pages-example/index.html or https://richardsalex.github.io/pages-example/other.html. If it's not working, see "File names matter" or "Paths to files matter" above.
(Note: these instructions are for Github's web interface.)
Go check out the instructions you've been given and video I recorded for you, both posted on Blackboard. Alternatively, read Github's own documentation on the subject.
-
From the main repository page, click the
Add file
button, selectingUpload files
from the drop-down menu. -
Drag and drop the contents of the project folder on your computer where indicated. Don't drag the folder itself, but the files and folders inside of it.
-
Click the green
Commit changes
button.
-
From the main repository page, click the
Add file
button, selectingUpload files
from the drop-down menu. -
Drag and drop the file from your computer where indicated. Or: follow the
choose your files
link and navigate to the file you want to select. -
Click the green
Commit changes
button.
- From any page, click on your account icon in the very top right and choose
Your repositories
.
-
From the main repository page, click on the name of the file you want to edit.
-
Click the pencil icon with the
Edit this file
tooltip. -
Make changes to the file name or file content.
-
Click the green
Commit changes
button.
-
From the main repository page, click on the name of the file you want to remove.
-
Click the trashcan icon with the
Delete this file
tooltip. -
Click the green
Commit changes
button.
-
From the main repository page, click
Settings
, which has a gear icon next to it. -
On the left rail, click
Pages
. -
Click on the button that says
None
and selectmain
. -
Click the
Save
button. -
You repository should now be published at the link shown. The URL format is generally
https://[your username].github.io/[your repository name]/
. If it's not showing up or you're getting a 404 webpage, go look at "Changes may not be instantaneously reflected online" above.
-
From the main repository page, click the green
Code
button. -
Choose
Download ZIP
. -
You can then make changes and upload the same files to your own repository under your Github account.
-
From the main repository page, in the top right, click the
Fork
button. -
When it asks where the repository should be forked, click on your account name.
-
You now have an identical copy of that repository under your account.
-
From the main repository page, click
Settings
, which has a gear icon next to it. -
Scroll to the bottom of the page, looking for the section labeled "Danger Zone."
-
Click the
Delete this repository
button and follow the instructions. Once it's gone, there's no undo function or way to recover it.