New: Complete Beginner's Guide to Coding is now available in Premium
Updated: Indian Govt Exam roadmaps now include salary breakdowns & timelines
Tip: Use the Career Hub to explore all career paths in one place
Back to Premium
PREMIUM GUIDE

Git & GitHub: Complete Guide

Version control from scratch — commits, branches, pull requests & building a GitHub portfolio that impresses recruiters

1 week Beginner 4 Sections +100 XP
1

What is Git & Why?

Section 1 of 4
1.1

Git tracks changes in your code. Think of it as "Ctrl+Z on steroids" — you can go back to any version of your project, ever.

1.2

GitHub is where you store your code online. It's like Google Drive for code. Every developer has a GitHub profile.

1.3

Why it matters: 100% of tech companies use Git. Your GitHub profile IS your coding resume. Recruiters check it before your actual resume.

1.4

Install Git: Download from git-scm.com. Or use GitHub Desktop (GUI) if command line scares you.

Practice Exercise

Create a GitHub account. Set your profile photo, bio, and pin your best repositories.

2

Core Commands

Section 2 of 4
2.1

git init — Start tracking a project. Run once in your project folder.

2.2

git add . — Stage all changes. Like putting files in an envelope before mailing.

2.3

git commit -m "message" — Save a snapshot. Write clear messages: "Add login page" not "update".

2.4

git push — Upload to GitHub. git pull — Download latest changes. git clone — Copy a repo to your computer.

3

Branches & Collaboration

Section 3 of 4
3.1

Branches let you work on features without breaking the main code. git checkout -b feature-name creates a new branch.

3.2

Pull Requests (PRs): When your feature is ready, create a PR on GitHub. Team reviews your code before merging.

3.3

Merge conflicts happen when two people edit the same line. Git shows both versions — you choose which to keep.

3.4

Open source: Find projects on GitHub, fork them, fix a bug or add a feature, submit a PR. This is how you build credibility.

4

GitHub Portfolio

Section 4 of 4
4.1

Pin your 6 best repositories. Each should have: clear README, screenshots, tech stack, how to run it.

4.2

Green contribution graph: Commit something every day. Even small changes count. Consistency impresses recruiters.

4.3

README template: Project name → Description → Screenshots → Tech stack → How to install → How to use → Contributing guidelines.

4.4

GitHub Pages: Host your portfolio website for free on GitHub. yourname.github.io — instant developer portfolio.

Unlock Full Guide

3 more sections with exercises, tips & next steps

Login to Read Full Guide Demo: admin / admin123