# Git & GitHub

How teams change code safely: commits, branches, pull requests and a history you can trust.

Level: Beginner. Free on DevOps Academy: https://devops.rajeev.pro/courses/git

## Roadmap

1. **The basics**: What version control is and how to set Git up properly once. [Lesson](https://devops.rajeev.pro/courses/git/01-version-control-and-setup)
   Topics: What is version control?; Installing Git; git config; Local vs global config; git init
2. **Repositories**: Understand the three places a change lives before it is saved for good. [Lesson](https://devops.rajeev.pro/courses/git/02-repositories-and-commits)
   Topics: Working directory; Staging area; Commits & messages; .gitignore; git log
3. **Branching**: Work on a change without breaking main for everyone else. [Lesson](https://devops.rajeev.pro/courses/git/03-branching)
   Topics: Create & rename; Switch & checkout; Delete branches; Merging basics
4. **GitHub essentials**: Where your team, your code reviews and your pipelines meet. [Lesson](https://devops.rajeev.pro/courses/git/04-github-essentials)
   Topics: Account & profile; Creating repos; Public vs private; Fork vs clone
5. **Remotes**: Keep your laptop and GitHub in sync without surprises. [Lesson](https://devops.rajeev.pro/courses/git/05-remotes)
   Topics: Managing remotes; Push & pull; Fetch without merge
6. **Merge strategies**: Pick the right way to bring work together, and fix conflicts without panic. [Lesson](https://devops.rajeev.pro/courses/git/06-merge-strategies)
   Topics: Fast-forward vs merge commit; Rebase; Squash; Handling conflicts; Cherry-pick
7. **Collaboration**: The day-to-day workflow of a real engineering team. [Lesson](https://devops.rajeev.pro/courses/git/07-collaboration)
   Topics: Issues & labels; Pull requests; PRs from forks; Code reviews; Branch naming
8. **Undoing changes**: Everyone breaks something. Know which undo is safe on a shared branch. [Lesson](https://devops.rajeev.pro/courses/git/08-undoing-changes)
   Topics: git revert; git reset (soft, mixed, hard); git stash; git reflog
9. **History & diffs**: Find out what changed, when, and who to ask. [Lesson](https://devops.rajeev.pro/courses/git/09-history-and-diffs)
   Topics: HEAD & detached HEAD; git log options; Diff staged & unstaged; Diff branches; git bisect
10. **Rewriting history**: Clean up before you share. And the rules for when never to. [Lesson](https://devops.rajeev.pro/courses/git/10-rewriting-history)
   Topics: commit --amend; Interactive rebase; Force-push safely
11. **Tags & releases**: Mark exactly what went to production so you can roll back to it. [Lesson](https://devops.rajeev.pro/courses/git/11-tags-and-releases)
   Topics: Annotated tags; Pushing tags; GitHub Releases; Semantic versioning
12. **Hooks & automation**: Catch mistakes before they leave your laptop, and automate the boring parts. [Lesson](https://devops.rajeev.pro/courses/git/12-hooks-and-automation)
   Topics: Client vs server hooks; pre-commit; GitHub CLI; GitHub Actions intro
13. **Security & extras**: Keep secrets out of history and dependencies up to date. [Lesson](https://devops.rajeev.pro/courses/git/13-security-and-extras)
   Topics: Secret scanning; Dependabot; Git LFS; Submodules; GitHub Pages
