Introduction
Version control isn’t just for professional developers, it’s a powerful tool for anyone who wants to showcase their projects online. With Git and GitHub Pages, you can turn a simple HTML file into a live website in minutes.
In this guide, we’ll walk through how to:
- Configure Git with your username and email.
- Initialize a Git repository and create your first HTML file.
- Push your project to GitHub.
- Host your resume website using GitHub Pages.
By the end, you’ll have your resume running as a personal website, accessible to anyone with the link.
Skilling Objectives
You will learn how to:
- Set up Git with your global configuration (username and email).
- Create a new project directory and initialize it with Git.
- Add and commit files using Git commands.
- Push your repository to GitHub.
- Deploy a simple HTML file as a live website using GitHub Pages.
Step 1: Configure Git
Before creating a project, you need to configure Git with your identity. This ensures your commits are properly linked to your account.
git config --global user.name "Sudais@1998"
git config --global user.email "oladosuadeniyi39@gmail.com"
Step 2: Create a New Project Directory
Create a folder for your resume project, navigate into it, and initialize Git.
mkdir sudaisdirectory
cd sudaisdirectory
git init
Check that Git has been initialized by listing hidden files:
ls -al
Step 3: Add an HTML File
Create your main HTML file:
touch index.html
vi index.html
Inside vi
, press i to enter insert mode and paste your HTML code.
When done, press Esc, then type:
:wq
This saves and quits the editor.
Step 4: Connect to GitHub
Now, go to your GitHub account and create a new repository (e.g., my-resume
). Copy the repository link and connect it to your local project:
git remote add origin https://github.com/Sudais1998/my-resume.git
Step 5: Commit and Push Your Project
Add your files to Git’s staging area, commit them, and push them to GitHub:
git status
git add .
git status
git commit -m "new commit"
git push origin master
Step 6: Deploy with GitHub Pages
Click on the Settings tab.
Scroll to Pages.
Once deployed, GitHub will provide you with a live link.
Step 7: View Your Resume Website
- Open the GitHub Pages link.
- Your
index.html
file should now be live as a personal resume website.
Conclusion
In this hands-on guide, you’ve learned how to:
- Configure Git with your identity.
- Create a project and version-control it locally.
- Push your repository to GitHub.
- Deploy a static site with GitHub Pages.
This is a beginner-friendly yet professional way to publish your resume or portfolio. With this foundation, you can expand your project to include more HTML pages, CSS styling, or even JavaScript features, making your personal website stand out.
Top comments (0)