Standard

Git and GitHub: Version Control and Team Workflows

165 Lectures 33 Quizzes Beginner 8h 30m 2,000 Rs
Git and GitHub: Version Control and Team Workflows

About this Course

Gain absolute mastery over your codebase with Git & GitHub. From internal content-addressable storage and atomic commits to resolving complex merge conflicts, master advanced branching, interactive rebasing, and GitHub team workflows. Implement automated testing with GitHub Actions and lead collaborative team development with confidence.

In this Course You'll Learn

Internal Git Architecture & Solo Version Control

  • Cryptographic Object Model: Understand how blobs, trees, commits, and tags form an immutable directed acyclic graph (DAG).
  • Three-Tree Workflow: Navigate effortlessly between the working directory, the staging index, and permanent commit history.
  • Atomic Commits: Craft clean, logical commits using interactive stage chunking (git add -p) and semantic commit messages.
  • Time Travel & History: Inspect commit histories, evaluate code diffs, revert changes with git restore, and undo mistakes safely.

Advanced Branching, Rebasing & Conflict Resolution

  • Non-Linear Branching: Create, manage, and merge feature branches using fast-forward strategies, recursive merges, and merge commits.
  • Interactive Rebasing: Clean up commit timelines using git rebase -i to squash redundant edits, reorder commits, and edit messages.
  • Conflict Resolution: Dissect three-way merge conflict markers methodically and resolve code collisions with surgical accuracy.
  • Disaster Recovery: Recover accidentally deleted commits and lost branches using the Git reference log (git reflog).

Team Collaboration, Pull Requests & CI/CD

  • Remote Synchronization: Coordinate local branches with GitHub remotes using upstream tracking, fetching, pulling, and safe pushes.
  • Pull Request Governance: Lead constructive code reviews, propose inline modifications, enforce branch rules, and manage approvals.
  • GitHub Actions Automation: Trigger automated unit tests, lint checks, and deployment scripts on pull request submissions.
  • Release Management: Tag semantic version releases, generate automatic changelogs, and maintain clean release branches.

Course Curriculum

Section 1: Foundations of Version Control

  • Why version control exists: Problems with file copies, history, and collaboration Free Preview
  • Centralized vs distributed systems: How Git differs from SVN and similar tools Free Preview
  • How Git stores data: Snapshots, objects (blob, tree, commit, tag), and content hashing Free Preview
  • The three areas: Working directory, staging area (index), and repository Free Preview
  • Git vocabulary: Commit, branch, HEAD, ref, remote, and clone Free Preview
  • Quiz - Foundations of Version Control Free Preview

Section 2: Installing and Configuring Git

  • Installing Git: Windows, macOS, and Linux installation methods Free Preview
  • Identity setup: `user.name`, `user.email`, and why they matter on commits Free Preview
  • Editor and defaults: Setting the default editor, `init.defaultBranch`, and line endings Free Preview
  • Viewing and editing config: Config levels (system, global, local) and `git config --list` Free Preview
  • Getting help: `git help`, man pages, and the `--help` flag Free Preview
  • Quiz - Installing and Configuring Git Free Preview

Section 3: Creating Repositories and Your First Commit

  • Initializing a repository: `git init` and what gets created inside `.git/`
  • Creating your first file: Writing content and checking status with `git status`
  • Staging files: `git add`, partial staging, and unstaging with `git restore --staged`
  • Making the first commit: `git commit`, the commit message, and what a commit contains
  • Commit identity and amending basics: Author vs committer, and checking the result with `git log`
  • Quiz - Creating Repositories and Your First Commit

Section 4: Staging, Committing, and Commit Messages

  • Selective staging: `git add -p` to stage hunks rather than whole files
  • Reviewing before commit: `git diff`, `git diff --staged`, and `git status -s`
  • Writing good commit messages: Subject line, body, 50/72 convention, and imperative mood
  • Atomic commits: Grouping related changes and splitting large changes into several commits
  • Commit message templates: Setting `commit.template` and using `git commit -m` vs the editor
  • Quiz - Staging, Committing, and Commit Messages

Section 5: Inspecting History and Diffs

  • Reading the log: `git log`, `--oneline`, `--graph`, `--decorate`, and `--stat`
  • Filtering history: By author, date, path, and message with `--author`, `--since`, and `-S`
  • Comparing changes: `git diff` between commits, branches, and working tree
  • Inspecting a single commit: `git show` and reading commit metadata
  • Finding who changed a line: `git blame` and tracing a bug with `git bisect`
  • Quiz - Inspecting History and Diffs