We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Assignment No.
5 : Setting Up a Simple Website on GitHub: (To deploy a static
website on GitHub Pages, demonstrating the use of cloud-based hosting for web content. Software: GitHub (https://github.com/)
Step 1: Create a GitHub Account
1. Go to (link unavailable) and sign up for a new account.
2. Fill in the required information, including username, email, and password.
Step 2: Create a New Repository
1. Log in to your GitHub account.
2. Click on the "+" button in the top-right corner and select "New repository". 3. Enter a name for your repository (e.g., "mywebsite") and select "Public". 4. Click on "Create repository".
Step 3: Create a Simple Website
1. Create a new folder on your local machine for your website files. 2. Add an index.html file to the folder with some basic HTML content. 3. Add any additional files (e.g., CSS, images) to the folder.
Step 4: Upload Files to GitHub
1. Initialize a Git repository in your local folder using git init.
2. Add all files to the repository using git add .. 3. Commit the files using git commit -m "Initial commit". 4. Link your local repository to your GitHub repository using git remote add origin <repository URL>. 5. Push the files to GitHub using git push -u origin master.
Step 5: Enable GitHub Pages
1. Go to your repository settings on GitHub.
2. Click on "GitHub Pages" in the left-hand menu. 3. Select "Master branch" as the source. 4. Click on "Save".
Step 6: View Your Website
1. Go to <yourusername>.(link unavailable)<repositoryname> to view your