you need to learn Git RIGHT NOW!!

AI writes most of your pull requests now, but you're the one clicking merge. CodeRabbit reads every file first and shows you what it breaks. Start a free 14-day CodeRabbit trial with my link. No credit card required: https://ntck.co/coderabbit


Git is the game save for your code. Before I walk into the scary room in Resident Evil, I save on the typewriter, and before your AI agent touches your code, you should too. So we build a tiny repo (a website and a zombie story), then save it, break it, restore it, and jump back in time with the DeLorean. Then we branch off the sacred timeline, put it on GitHub, hand issues to an AI agent, and commit a timeline crime on purpose so you know how to fix it. In this video you'll learn what Git actually is (and why it is not GitHub), how staging, commits, git log and git diff work, how to time travel with git checkout and git restore, how branches and merges work, and how issues, pull requests and merge conflicts let you work alongside an AI agent without wrecking main. Whether you have never typed git init or your agent has been doing it for you this whole time, by the end you'll know Git better than your AI.


Join the NetworkChuck Academy!: https://ntck.co/NCAcademy


RESOURCES / LINKS:
📖 Follow-along guide (every command, step by step): https://github.com/theNetworkChuck/git-guide
🛠️ Download Git: https://git-scm.com/downloads
🛠️ GitHub CLI: https://cli.github.com
🌐 GitHub (free account): https://github.com


GIT COMMANDS (the copy and paste list I promised):
Check if you have Git: git --version
Tell Git who you are: git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Make main the default branch: git config --global init.defaultBranch main
Turn a folder into a repo: git init
What's going on?: git status
Stage your changes: git add .
Save the game: git commit -m "my first commit"
See your save points: git log --oneline
See what changed: git diff (and git diff --staged)
Undo changes to a file: git restore zombiestory.md
Time travel to an old commit: git checkout COMMIT_HASH
Back to the present: git switch main
Make a branch and jump in: git branch zombieattack, then git switch zombieattack
Merge it into main: git switch main, then git merge zombieattack
Delete a branch: git branch -d zombieattack
Log in to GitHub: gh auth login
Make a private repo on GitHub: gh repo create YOUR_REPO --private
Connect your repo to GitHub: git remote add origin YOUR_REPO_URL.git
Push it up: git push -u origin main
Download a repo: git clone YOUR_REPO_URL
Grab the latest: git pull
Grab a branch without merging: git fetch, then git branch -a
Create an issue: gh issue create --title "Add a line" --body "Add one more line to zombiestory.md"
Review and merge a pull request: gh pr checkout 3, then gh pr merge 3 --merge
Keep secrets off GitHub: put .env in a .gitignore file


TIMESTAMPS:
0:00 - Why you need Git right now (and why Git is not GitHub)
1:15 - How CodeRabbit reviews your AI's pull requests (Sponsor)
3:01 - Installing Git and building a tiny repo to track
5:01 - git status, staging with git add, and your first commit
7:28 - Seeing exactly what changed with git diff
9:03 - Breaking your code and fixing it with git restore
9:53 - Time travel to an old commit with git checkout
11:07 - Git branches: an alternate timeline off the sacred timeline
14:05 - Merging a branch back into main
15:13 - Putting your repo on GitHub with the GitHub CLI
17:19 - Keeping secrets off GitHub with .gitignore
18:17 - git remote and git push: sending your code up
19:34 - git clone and git pull: a second copy of your repo
22:06 - Handing GitHub issues to an AI agent
27:05 - Pull requests: merging your agent's branch the GitHub way
31:01 - Committing a timeline crime (a merge conflict on purpose)
32:37 - Fixing a merge conflict and merging the pull request
34:36 - Undoing a merged pull request with revert
35:34 - A prayer for you


**Sponsored by CodeRabbit


SUPPORT NETWORKCHUCK:
☕☕ COFFEE and MERCH: https://ntck.co/coffee

READY TO LEARN??
🔥🔥Join the NetworkChuck Academy!: https://ntck.co/NCAcademy
📚 CCNA Course: https://ntck.co/ccna


FOLLOW ME EVERYWHERE:
Instagram: https://www.instagram.com/networkchuck/
X/Twitter: https://x.com/networkchuck
Facebook: https://www.facebook.com/NetworkChuck/
Join the Discord server: https://ntck.co/discord


Some links in this description are affiliate links. If you buy through them, I may earn a small commission at no extra cost to you. #sponsored

#git #github #networkchuck Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to you need to learn Git RIGHT NOW!!

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.