Git & GitHub Masterclass (50 Chapters, 10 Phases)
📌 Covered in this course:
Git Basics · Configuration · Repositories · Staging Area · Commits · git diff · Restoring Files · git reset · git revert · Reflog · Branching · Merging · Conflict Resolution · Remote Repos · Push & Pull · Fetch · Pull Requests · Code Review · Forks · Issues & Projects · Releases · Rebase · Cherry-Pick · Stash · .gitignore · Git Hooks · Submodules · Git LFS · GitHub Actions · CI/CD · SSH Keys · GPG Signing · Branch Protection · Professional Workflows · Top 50 Interview Q&A
Welcome to Our Compiler's Git & GitHub Complete Master Course. Git is the universal standard distributed version control system powering modern software engineering. From repository initialization, staging, and branching to Pull Requests, automated CI/CD pipelines with GitHub Actions, signed commits, and top technical interview preparation, this 50-chapter course covers every essential concept in depth.
🎯 Ready to Master Git Version Control?
Choose where to start: explore Git introduction, branching, GitHub pull requests, interactive rebasing, GitHub Actions CI/CD, or interview prep:
📚 Master Course Curriculum
Phase 01
Git Fundamentals & Setup
01
1. What is Git & Version Control?
Git ante enti? · Version control · Local vs Remote · Repositories · Commits · Distributed VCS
Read Chapter →
02
2. Git Installation & Global Config
git config · user.name · user.email · Global vs Local config · Default branch init.defaultBranch
Read Chapter →
03
3. Creating & Initializing Repositories
git init · .git folder structure · Object database · HEAD pointer · Initializing local repos
Read Chapter →
04
4. Working Tree & Staging Area
Working Directory · Staging Area (Index) · git add · Untracked vs Tracked files · File lifecycle
Read Chapter →
05
5. Commits & Commit Messages
git commit -m · Commit message best practices · SHA-1/SHA-256 hashes · Commit history · Atomic commits
Read Chapter →
Phase 02
Tracking, Differences & Inspection
06
6. Inspecting Changes with git diff
git diff · Staged diff (--staged) · Working tree diff · Comparing commits & branches · Patch format
Read Chapter →
07
7. Restoring Files (git restore)
git restore · Unstaging files (--staged) · Discarding local workspace changes · Selective restoring
Read Chapter →
08
8. Git Reset (Soft, Mixed, Hard)
git reset --soft · git reset --mixed · git reset --hard · Resetting HEAD · Moving branch pointers
Read Chapter →
09
9. Git Revert & Reflog Recovery
git revert · Safe undoing in public branches · git reflog · Recovering lost commits & resets
Read Chapter →
10
10. Git Log & History Formatting
git log --oneline --graph --decorate · Filtering log history · Searching commit logs (--grep)
Read Chapter →
Phase 03
Branching & Merging
11
11. Git Branch Basics
git branch · Creating branches · Switching branches (checkout/switch) · Deleting branches
Read Chapter →
12
12. Branch Workflows & Naming Conventions
Feature branching · Hotfix branches · Release branches · Branch naming conventions (feature/ bugfix/)
Read Chapter →
13
13. Merging Branches
git merge · Fast-forward merges · Recursive merge commits · 3-way merge algorithm
Read Chapter →
14
14. Merge Conflicts Resolution
Merge conflicts · Conflict markers (<<<<<<<, =======, >>>>>>>) · Resolving conflicts · git merge --abort
Read Chapter →
15
15. Fast-Forward vs 3-Way Merges
git merge --no-ff · Preserving branch history · Fast-forward advantages vs Merge commit safety
Read Chapter →
Phase 04
GitHub & Remote Repositories
16
16. GitHub Repositories Setup
GitHub dashboard · Public vs Private repos · Creating remote repos · Template repositories
Read Chapter →
17
17. Connecting Local & Remote Repositories
git remote add origin · Checking remotes (-v) · Changing remote URLs (set-url) · Multiple remotes
Read Chapter →
18
18. Push & Pull Mechanics
git push -u origin main · git pull · Upstream tracking · Force pushing gotchas (--force-with-lease)
Read Chapter →
19
19. Fetch & Remote Tracking Branches
git fetch · Remote tracking branches (origin/main) · Fetch vs Pull · Inspecting remote refs
Read Chapter →
20
20. Upstream Remotes & Fork Syncing
git remote add upstream · Syncing forks · Rebase on upstream/main · Keeping forks updated
Read Chapter →
Phase 05
Pull Requests & Collaboration
21
21. Pull Requests & Code Reviews
Creating PRs · PR templates · Requesting reviews · Draft PRs · Merging PR strategies
Read Chapter →
22
22. Code Review Best Practices
Reviewing code · Inline comments · Requesting changes · Approving PRs · Suggesting code changes
Read Chapter →
23
23. Forks & Open-Source Contributions
Forking repos · Syncing forks · Upstream remotes · Open source etiquette · Contribution guidelines
Read Chapter →
24
24. GitHub Issues & Bug Tracking
Issue tracking · Labels · Assignees · Milestones · Closing issues via commits (Closes #12)
Read Chapter →
25
25. GitHub Projects & Kanban Boards
Project boards · Kanban workflows · Automation rules · Sprint planning · Field customizations
Read Chapter →
Phase 06
Advanced Git Operations
26
26. Releases & Git Tags
git tag · Lightweight vs Annotated tags · Creating GitHub Releases · Release binaries · Semantic Versioning
Read Chapter →
27
27. Git Rebase & Interactive Rebasing
git rebase · Interactive rebase (rebase -i) · Squashing commits · Rebase safety rules · Rebase onto
Read Chapter →
28
28. Git Cherry-Pick
git cherry-pick · Applying specific commits across branches · Resolving cherry-pick conflicts
Read Chapter →
29
29. Git Stash & Stash Stack
git stash · git stash pop · git stash apply · Stash list · Stashing untracked files (-u) · Stash drop
Read Chapter →
30
30. Reflog & Commit Recovery
git reflog · Recovering deleted branches · Restoring hard reset commits · Dangling commits
Read Chapter →
Phase 07
Repository Management & Customization
31
31. Commit Best Practices & Conventions
Atomic commits · Conventional commits (feat, fix, docs) · Writing great commit messages · Imperative mood
Read Chapter →
32
32. .gitignore & Pattern Matching
.gitignore patterns · Global gitignore · Ignoring tracked files · git rm --cached · Wildcards & negation
Read Chapter →
33
33. Git Hooks & Husky Automation
Pre-commit hooks · Post-commit hooks · Husky · Automating linters & tests · Client-side vs Server-side hooks
Read Chapter →
34
34. Git Submodules & Subtrees
git submodule add · Submodule initialization & update · Git subtree · Managing external repo dependencies
Read Chapter →
35
35. Git Attributes & LFS (Large File Storage)
.gitattributes · Git LFS (Large File Storage) · Handling binary assets · Line ending normalizations (crlf/lf)
Read Chapter →
Phase 08
GitHub Actions & CI/CD
36
36. GitHub Actions Workflows
Workflows · Jobs · Steps · Actions syntax (.github/workflows) · Triggers (push, pull_request)
Read Chapter →
37
37. Continuous Integration with GitHub Actions
Automated testing · Build matrices · Caching dependencies · Artifacts upload/download
Read Chapter →
38
38. Deployment Pipelines with Actions
Automated deployments · Secrets management (secrets.GITHUB_TOKEN) · Deploying to AWS/Vercel/GitHub Pages
Read Chapter →
39
39. Custom GitHub Actions
Composite Actions · JavaScript Actions · Docker Container Actions · Action inputs & outputs
Read Chapter →
40
40. Matrix Builds & Dependency Caching
Build matrix strategy (OS & Node/Python versions) · actions/cache · Optimizing CI pipeline duration
Read Chapter →
Phase 09
Security & Authentication
41
41. Repository Security & Dependabot
Dependabot automated alerts & security updates · Secret scanning · Security advisories · CODEOWNERS file
Read Chapter →
42
42. GitHub Authentication (HTTPS, PAT & SSH)
Personal Access Tokens (PAT) · SSH key pair generation (ed25519) · Adding SSH keys · ssh -T git@github.com
Read Chapter →
43
43. Branch Protection Rules
Protecting main branch · Requiring PR reviews · Requiring status checks to pass · Restricting force pushes
Read Chapter →
44
44. Signed Commits with GPG & SSH
GPG signing keys · SSH commit signing · Verified badge on GitHub · Sign commits with git commit -S
Read Chapter →
45
45. CODEOWNERS & Team Permissions
CODEOWNERS syntax · Mandatory code reviews by domain experts · Organization permissions · Team roles
Read Chapter →
Phase 10
Hosting, Workflows & Interview Prep
46
46. README & Technical Documentation
Markdown syntax · Badges · Architecture diagrams · GitHub Wiki & Discussions · Open-source documentation
Read Chapter →
47
47. Free Web Hosting with GitHub Pages
Free static web hosting · Custom domains · Deploying static sites from main branch or gh-pages branch
Read Chapter →
48
48. Enterprise Team Collaboration
Organization roles · Teams · Access controls · Code review assignments · Cross-functional team workflows
Read Chapter →
49
49. Professional Git Workflows (Trunk-Based vs Git-Flow)
GitHub Flow vs Git Flow vs Trunk-Based Development · Release strategies · Production deployment checklist
Read Chapter →
50
50. Top 50 Git & GitHub Technical Interview Q&A
Top 50 Git Interview Questions & Answers · Rebase vs Merge · Soft vs Hard Reset · Reflog recovery mechanics
Read Chapter →