Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenin82 committed Sep 23, 2023
1 parent fad65a5 commit 071eaf2
Show file tree
Hide file tree
Showing 14 changed files with 16,611 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# learn-github-pages
# How to Host an HTML File on GitHub Pages

This guide will walk you through the process of forking a repository containing an HTML file and then hosting it using GitHub Pages.

## Prerequisites:
- A GitHub account. If you don't have one, [sign up](https://github.com/join) for free.

## Steps:

### 1. Fork the Repository
- Navigate to the repository you wish to fork on GitHub.
- Click on the 'Fork' button at the top right corner of the page. This will create a copy of the repository in your GitHub account.

### 2. Set up GitHub Pages
- Navigate to your forked repository on the GitHub website.
- Go to the 'Settings' tab, located at the top-right corner of the page.
- Scroll down to the 'GitHub Pages' section.
- Under 'Branch', select the branch you want to use for GitHub Pages (change `None` to `main`).
- Click 'Save'.
- Wait a few minutes for your page to be deployed.

### 3. Access Your Hosted HTML File
- Refresh the page and you will find a link to your hosted page at the top.
- After configuring GitHub Pages, GitHub will provide you with a link to your live site. It usually looks something like: `https://yourusername.github.io/forked-repo-name/`


## Conclusion
That's it! You have successfully forked a repository and hosted an HTML file using GitHub Pages without cloning locally. Enjoy your live site!
Loading

0 comments on commit 071eaf2

Please sign in to comment.