How to Sync a Forked GitHub Repo with the Original | git fetch upstream & git merge | Git Course #14
ArbazyCode
0:00 / 0:00
How to Sync a Forked GitHub Repo with the Original | git fetch upstream & git merge | Git Course #14
10 просмотров · 4 дня назад
ArbazyCode
92 подписчика
10 просмотров · 4 дня назад
Forked a project, worked on it for days, and now your copy is outdated? The original owner has added new commits, and your pull request may end up with merge conflicts. In this session, we fix that properly by connecting your fork to the original project and syncing it, live on the terminal.
This is Session 14 of our complete Git & GitHub Course. Make sure you've watched Session 13 (Forks & Pull Requests) first, so the workflow makes sense.
🔥 What you'll learn in this video:
The difference between origin and upstream (the dual-bridge concept)
How to add the original repository as upstream with git remote add upstream
How to check the remote connections with git remote -v
How to download the original project's new commits safely with git fetch upstream
How to inspect incoming changes with git log upstream/main --oneline
How to merge the updates into your local main branch with git merge upstream/main
How to update your GitHub fork with git push origin main
Why keeping your fork in sync prevents merge conflicts in future pull requests
📚 Git & GitHub Course Playlist:
Session 1: What is a Version Control System
Session 2: Distributed VCS and the History of Git
Session 3: Introduction to Branching (Theory)
Session 4: Git Installation & Git Bash
Session 5: First Commit & Developer Identity Setup
Session 6: .gitignore, git diff & git log
Session 7: Branching & Merging Live Demo
Session 8: Merge Conflicts Explained & Resolved
Session 9: GitHub Account & First Repository
Session 10: Connecting Local to GitHub & First Push
Session 11: git clone, git fetch & git pull
Session 12: Undoing Mistakes in Git
Session 13: Forks & Pull Requests
Session 14: Syncing Your Fork with Upstream (This Video)
This is a beginner-friendly, zero-to-hero Git and GitHub series designed to take you from complete beginner to confidently contributing to real projects. No prior coding experience needed.
💬 Has your fork ever fallen behind the original project? Tell me in the comments!
👍 If this helped you, hit LIKE
🔔 SUBSCRIBE and turn on notifications so you never miss a session
📤 SHARE this with someone who contributes to open source
#Git #GitHub #GitFork #GitUpstream #GitFetch #GitMerge #OpenSource #GitTutorial #LearnGit #GitForBeginners #GitCourse #Programming #GitAndGitHub