Git and GitHub for Beginners: Commits, Branches, Pull Requests and Collaboration
A 14-lesson walkthrough of Git and GitHub from installation through everyday collaboration. It covers creating repositories, staging and committing, .gitignore, branching, merging and resolving conflicts, then moves on to remotes, push/pull/fetch, pull requests, forks and repository management. It closes with recovery commands (discard, stash, amend, revert) and branching strategies. Suits complete beginners, solo developers and anyone who needs to collaborate on code.
Lessons by Pathfinder Analytics on YouTubeCurated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Install Git and set up GitHub and VS Code on your machine
- Create a repository, stage changes, commit and read the history with git log
- Exclude files from tracking with .gitignore and unstage files
- Create branches, merge them and resolve merge conflicts
- Connect a local repo to GitHub, clone repos, and sync with push, pull and fetch
- Open pull requests, work with branch policies and contribute through forks
- Recover from mistakes by discarding, stashing, amending and reverting changes
Prerequisites
- No prior experience needed
- A computer where you can install software (Git, VS Code)
- A free GitHub account (set up in the course)
Course Curriculum
- 1What Is Git and Why It Matters7:02
- 2Installation and Setup7:50
- 3Your First Repository: Init, Stage, Commit and Log7:57
- 4Controlling What Git Tracks: Unstaging and .gitignore9:04
- 5Branching and Merging24:03
- 6Resolving Merge Conflicts21:00
- 7Connecting to GitHub: CLI Setup, Remote Repos and Cloning14:38
- 8Syncing with Remotes: Push, Pull and Fetch13:03
- 9Pull Requests and Branch Policies15:16
- 10Forking a Repository7:40
- 11Managing a Repository10:52
- 12Discarding and Stashing Changes9:52
- 13Amending and Reverting Commits14:19
- 14Git Tips, Branching Strategies and Wrap Up9:38
About the Instructor
Pathfinder Analytics
YouTube creator
The lessons in this course were produced by Pathfinder Analytics and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Pathfinder Analytics is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: Development

Programming, Data Structures and Algorithms using Python (IIT Madras)

Data Structures and Algorithms in Python for Coding Interviews (Hindi)

Data Structures and Algorithms in Python for Coding Interviews

TypeScript for Beginners: Types, Interfaces, Classes and Generics

React with TypeScript: Typing Props, Hooks and Reusable Components

Git and GitHub in Hindi: From First Commit to Pull Requests and Rebase

- 14 lessons
- 2h 52m of video
- Earns YodaCoins & streaks
- Timestamped notes
- Free — hosted on YouTube
No certificate is issued for Library courses.