Git REBASE Explained: Unveiling Rebase's Hidden Hazard
ฝัง
- เผยแพร่เมื่อ 15 มิ.ย. 2024
- 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
MORE GIT VIDEOS: th-cam.com/play/PLfU9XN7w4tFwKwh_xPSQ_X1-hROQEpHnM.html
The best git animation on youtube. Helps me to visualise what is happening. Looking forward to the next one.
Appreciate it, and thanks for following my vids!
Nice cliffhanger! I'm excited to learn what happens next!
2:14 Subscribed. Thank you for the videos and esp. the animations: they are fantastic.
Wow, appreciate that!
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!
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!
Awesome video! Thanks
Definitely earned that sub, great video and succinct explanation ;)
Thanks for the sub!
really nice video!
Thanks!
Amazing Zack :)
thank you
gooog
At 2:52 we've already done git rebase main while on the feature_branch ?
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
What is there are unstaged files in the feature branch ? Is the rebase update that file, but the files are not committed, then ?
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.
How do you make these animations. They look lovely :D
Appreciate it! I create the graphics in Sketch, then I use keyframe animations in Final Cut Pro to animate them.
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?
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
The second video in the series is marked PRIVATE
Is that on purpose?
Do you have more details?
I don't think I saw a pitfall here - what did I miss?
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.
@@themoderncoderhow would you resolve a situation like that, it is a bit confusing
@@themoderncoderi guess it would be to rebase your new commits into the remote branch