Git REBASE Explained: Unveiling Rebase's Hidden Hazard

  Рет қаралды 7,198

The Modern Coder

The Modern Coder

Күн бұрын

The better way to learn Git: learngit.io/
----
In this git rebase tutorial we'll learn how to use rebase to streamline your version control workflow. Start by understanding the fundamentals of git rebase: when and why you should use it. We'll then cover best practices for using git rebase in collaborative situations with other developers, and review common rebase pitfalls to avoid. We'll also explore some pro git rebase workflow tips to help you master the most common rebase use-cases.
----
CHAPTERS
0:00 Intro & setup
0:44 Rebase re-anchor
1:07 Git rebase deconstructed
1:40 Rebase pitfalls
1:55 Git rebase workflow tip
2:45 Branch merging options
MY TECH
www.themoderncoder.com/wfh-ny...
MUSIC
uppbeat.io/t/danijel-zambo/st...
License code: GP7G16RFOLJZTBYN
#git #github #learngit #gitrebase #git #development #softwareengineering #programming #coding #versioncontrol #developer #technology #tutorial #stepbystepguide #gitrepository #vcs #programmingtips #codersofinstagram #codingcommunity #learnprogramming #softwaredevelopment #codingtutorial #gitexplained

Пікірлер: 30
@themoderncoder
@themoderncoder 10 ай бұрын
MORE GIT VIDEOS: kzfaq.info/sun/PLfU9XN7w4tFwKwh_xPSQ_X1-hROQEpHnM
@ventin75
@ventin75 10 ай бұрын
The best git animation on youtube. Helps me to visualise what is happening. Looking forward to the next one.
@themoderncoder
@themoderncoder 10 ай бұрын
Appreciate it, and thanks for following my vids!
@sly-ryder-dietz
@sly-ryder-dietz 10 ай бұрын
Nice cliffhanger! I'm excited to learn what happens next!
@michaeleaster1815
@michaeleaster1815 10 ай бұрын
2:14 Subscribed. Thank you for the videos and esp. the animations: they are fantastic.
@themoderncoder
@themoderncoder 10 ай бұрын
Wow, appreciate that!
@noor_nee
@noor_nee 10 ай бұрын
what are the odds ?! i just searched for a git rebase video and the video you uploaded about 5 years ago was the first result i saw. really loved the video btw; decided to checkout your other videos and then boom, a video about git rebase is the most recent!
@themoderncoder
@themoderncoder 10 ай бұрын
Thanks for taking the time to check out my other stuff! I can definitively say my newer videos are leaps and bounds higher quality than my older stuff, and I’m really trying to bring awareness to that, so I appreciate you checking it out!
@adriananin3150
@adriananin3150 10 ай бұрын
Awesome video! Thanks
@sanjayplays5010
@sanjayplays5010 10 ай бұрын
Definitely earned that sub, great video and succinct explanation ;)
@themoderncoder
@themoderncoder 10 ай бұрын
Thanks for the sub!
@ShivamSharma7
@ShivamSharma7 10 ай бұрын
Amazing Zack :)
@pascualrosario8633
@pascualrosario8633 7 ай бұрын
really nice video!
@themoderncoder
@themoderncoder 7 ай бұрын
Thanks!
@rayenchtioui8188
@rayenchtioui8188 10 ай бұрын
thank you
@francescopisu1568
@francescopisu1568 8 ай бұрын
At 2:52 we've already done git rebase main while on the feature_branch ?
@themoderncoder
@themoderncoder 8 ай бұрын
Yeah, that would be one scenario. The other scenario could be that no other changes were pushed to main while the feature branch was in development
@learner8084
@learner8084 9 ай бұрын
What is there are unstaged files in the feature branch ? Is the rebase update that file, but the files are not committed, then ?
@themoderncoder
@themoderncoder 9 ай бұрын
If there are upstaged changes in the working directory then rebase will fail and you'll need to either stash or commit those changes to continue rebasing.
@abdelazizez-zahed5009
@abdelazizez-zahed5009 3 күн бұрын
gooog
@commitsovercoffee
@commitsovercoffee 10 ай бұрын
How do you make these animations. They look lovely :D
@themoderncoder
@themoderncoder 10 ай бұрын
Appreciate it! I create the graphics in Sketch, then I use keyframe animations in Final Cut Pro to animate them.
@GizmoMaltese
@GizmoMaltese 9 ай бұрын
I don't get it. What if one of the files you're changing has been updated by someone else? How does rebase work there?
@themoderncoder
@themoderncoder 9 ай бұрын
You’ll get a conflict (just like you would during a merge) and you’ll need to tell Git how to incorporate the other person’s changes
@ChrisAthanas
@ChrisAthanas 10 ай бұрын
The second video in the series is marked PRIVATE Is that on purpose?
@themoderncoder
@themoderncoder 10 ай бұрын
Do you have more details?
@cFyugThCzvAqYaGmxRgfCKTuvHMEjQ
@cFyugThCzvAqYaGmxRgfCKTuvHMEjQ 10 ай бұрын
I don't think I saw a pitfall here - what did I miss?
@themoderncoder
@themoderncoder 10 ай бұрын
Rebasing a branch that is shared by other contributors is the pitfall. If someone else has your feature_branch pulled into their local workspace then rebasing it will cause issues for them. Since rebase works by erasing then re-creating commits, you can cause yourself and your teammates synchronization problems by rebasing shared branches/commits.
@greyshopleskin2315
@greyshopleskin2315 4 ай бұрын
@@themoderncoderhow would you resolve a situation like that, it is a bit confusing
@greyshopleskin2315
@greyshopleskin2315 4 ай бұрын
@@themoderncoderi guess it would be to rebase your new commits into the remote branch
Change Git Commit Messages Tutorial
4:48
The Modern Coder
Рет қаралды 15 М.
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 82 М.
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 8 МЛН
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 39 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 109 МЛН
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
kak budto
Рет қаралды 1,3 МЛН
Unlock Git collaboration with CLONE, PUSH & FETCH
9:09
The Modern Coder
Рет қаралды 3,2 М.
Git STASH Tutorial
6:59
The Modern Coder
Рет қаралды 21 М.
Git Rebase Vs. Merge
19:59
Colt Steele
Рет қаралды 106 М.
NEOVIM GIT PRODUCTIVITY: 2024
10:22
Ashish Alex
Рет қаралды 2,7 М.
Resolve Git Cherry Pick Merge Conflicts
5:52
The Modern Coder
Рет қаралды 34 М.
Everything You'll Need to Know About Git with ThePrimeagen | Preview
14:43
Top 10 Linux Job Interview Questions
16:04
tutoriaLinux
Рет қаралды 2,3 МЛН
Git rebase to master example
12:00
Cameron McKenzie
Рет қаралды 43 М.
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 8 МЛН