Git is a version control system that tracks changes in your code. GitHub is a platform where you store your code online and collaborate with others. Together, they are non-negotiable skills for any developer job in Nigeria. Every company in Lagos, from Paystack to the smallest startup in Yaba, uses Git. Learning Git takes about one week for the basics and a few more weeks to become comfortable with branching and merging. Start using Git from your very first project. The earlier you build the habit, the stronger your GitHub profile will be when you start applying for jobs.
Imagine you are writing a document. You make changes, save, make more changes, save again. But sometimes you want to go back to an earlier version. Without Git, you would need to save copies manually: "document_v1.docx", "document_v2_final.docx", "document_v2_final_FINAL.docx." Everyone has done this. It is chaotic.
Git eliminates that chaos for code. It tracks every change you make, who made it, and when. You can go back to any previous version at any time. You can experiment with new features without risking the working version. When you make a mistake, you roll back. This is called version control.
Git is the tool that runs on your computer and tracks your changes.
GitHub is a website (github.com) where you store your Git repositories online. Think of it as Google Drive for code, but with collaboration features built in. Your code is backed up in the cloud, visible to anyone you choose, and accessible from any computer.
They are related but separate. Git works without GitHub (you can track changes locally). But GitHub adds backup, collaboration, and visibility. Every Nigerian developer uses both.
Open any developer job listing on Jobberman or LinkedIn Nigeria. Under "Requirements," Git and GitHub appear almost universally. This is not a nice-to-have. It is the baseline.
Why companies insist on Git:
Why GitHub matters for your career:
Get weekly developer tips
Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.
No spam. Unsubscribe anytime.
Step 1: Install Git
git --version. If Git is not installed, your Mac will prompt you to install it.sudo apt install git (Ubuntu/Debian) or sudo yum install git (Fedora).Step 2: Configure your identity
Open your terminal and run:
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
Use the same email you will use for GitHub.
Step 3: Create a GitHub account
Go to github.com and sign up. It is free. Choose a professional username (your real name or a clean handle, not "codingKing2024" or similar). This is a professional platform that employers will see.
Step 4: Connect Git to GitHub
You need to authenticate so your local Git can push code to GitHub. The recommended method is SSH keys. GitHub's documentation walks you through generating an SSH key and adding it to your account. It takes 5 minutes and you only do it once per computer.
You do not need to memorize 50 Git commands. You need these:
Starting a project:
git init - Initialize Git tracking in your project foldergit clone [url] - Download an existing repository from GitHub to your computerDaily workflow:
git status - See what files have changedgit add . - Stage all changed files for committinggit commit -m "describe what you changed" - Save the staged changes with a messagegit push - Upload your commits to GitHubgit pull - Download the latest changes from GitHubBranching (when you are comfortable with the basics):
git branch feature-name - Create a new branchgit checkout feature-name - Switch to that branchgit merge feature-name - Merge the branch back into mainThe daily habit: Every time you finish a meaningful chunk of work (added a feature, fixed a bug, completed a section), commit and push. Your commit messages should describe what you did: "add product listing page," "fix cart total calculation," "integrate Paystack checkout." Not "update" or "fix stuff."
Let us walk through how you would use Git on a real project, say an e-commerce store with Paystack integration.
Day 1: Create the project folder, run git init, create your first files (index.html, app.js), commit with "initial project setup", create a GitHub repository, push.
Day 2: Build the product listing page. Commit: "add product listing page with NGN prices." Push.
Day 3: Add the shopping cart. Commit: "add cart functionality with add and remove." Push.
Day 5: Integrate Paystack. You are not sure this will work, so create a branch: git branch paystack-integration, switch to it, and work there. If it breaks everything, your main branch is still safe. When it works, merge it back.
Day 7: Deploy to Vercel. Commit: "configure for Vercel deployment." Push. Vercel auto-deploys from GitHub.
Each commit is a save point. If Paystack integration breaks the cart on Day 5, you can go back to Day 3's version and try again. This safety net makes you braver with your code. You experiment more because mistakes are reversible.
If you have any coding project on your computer, even a half-finished one, initialize Git and push it to GitHub right now. Open your terminal, navigate to the project folder, and run:
git init
git add .
git commit -m "initial commit"
Then create a repository on GitHub and push. Your first commit does not need to be perfect code. It needs to exist. From this point forward, commit and push every time you make progress. In three months, your GitHub profile will have a visible track record that employers respect.
If you are just starting your coding journey, our build your first website guide gives you a project to practice Git with. And if you want structured learning from foundations through full-stack development, create a free McTaba Academy account to explore the curriculum.
Create a free McTaba Academy account. Access starter lessons, join the community, and explore at your own pace.
Create Free Account