How to Host Your Project on GitHub and GitLab?
Just stepping into the world of professional programming? Or getting ready to showcase your finest projects to recruiters with an impressive project portfolio?
In both cases, platforms like GitHub and GitLab are game-changers for managing repositories and enabling collaborative project development.
So, let’s dive into the main question: “How to host your project on GitHub and GitLab?”
Step 1: Create Your Account
Before hosting anything, you’ll need an account:
-
Click Sign Up (top-right corner).
-
Enter your email → set a username (unique) → choose a password → confirm.
🎉 Congratulations, your GitHub/GitLab account is ready!
Two Ways to Host Your Project
There are two approaches — one simple and user-friendly, the other more advanced for developers who want full control.
A. Beginner-Friendly Method (No Command Line)
1. Create a New Repository
-
Log in to GitHub/GitLab.
-
At the top, go to Repositories → click the green New button.
-
Enter a Repository Name.
-
Choose Public or Private (depending on access).
-
Check Add a README file.
2. Upload Your Project Files
-
Inside your repository, click Add files → Upload files.
-
Select files from your computer and upload them.
-
Scroll down → click the green Commit changes button.
3. Edit README
-
Click the ✏️ (pencil icon) in the README section.
-
Add your project description.
-
Scroll down → Commit changes.
✅ Done! Your project is now hosted on GitHub/GitLab.
💡 Pro Tip: A well-written README makes your project look more professional to recruiters.
B. Advanced Method (Using Git on Your Local System)
For those who want professional workflows, offline version control, and more flexibility.
1. Install Git
-
On Windows/Linux: Download from git-scm.com.
-
On Mac:
brew install git
2. Create a Remote Repository
Follow the same steps as Method A → create a new repo on GitHub/GitLab.
3. Initialize Local Project
Open terminal/command prompt, then:
cd /users/xyz/Project_folder # navigate to project folder
git init # initialize local repo
git add . # add all files
git commit -m "Initial commit" # commit changes
4. Link Local Repo with Remote Repo
Copy your repository’s URL and run:
git remote add origin <REMOTE_URL>
git branch -M main
git push -u origin main
✅ Your project is now live on GitHub/GitLab!
Final Thoughts
Whether you go with the beginner-friendly method or the advanced command-line approach, hosting your project on GitHub/GitLab is one of the best ways to showcase your skills to recruiters and collaborate with developers worldwide.
And remember — if you’re looking for job opportunities where you can actually apply these skills, check out Jobavasar.com to explore exciting openings and start your career journey today! 🚀