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

ความคิดเห็น • 30

  • @themoderncoder
    @themoderncoder  10 หลายเดือนก่อน +1

    MORE GIT VIDEOS: th-cam.com/play/PLfU9XN7w4tFwKwh_xPSQ_X1-hROQEpHnM.html

  • @ventin75
    @ventin75 10 หลายเดือนก่อน +8

    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 หลายเดือนก่อน +5

    Nice cliffhanger! I'm excited to learn what happens next!

  • @michaeleaster1815
    @michaeleaster1815 10 หลายเดือนก่อน +1

    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 หลายเดือนก่อน +1

    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 หลายเดือนก่อน +2

      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!

  • @pascualrosario8633
    @pascualrosario8633 7 หลายเดือนก่อน

    really nice video!

  • @ShivamSharma7
    @ShivamSharma7 10 หลายเดือนก่อน

    Amazing Zack :)

  • @rayenchtioui8188
    @rayenchtioui8188 10 หลายเดือนก่อน

    thank you

  • @abdelazizez-zahed5009
    @abdelazizez-zahed5009 2 วันที่ผ่านมา

    gooog

  • @francescopisu1568
    @francescopisu1568 8 หลายเดือนก่อน

    At 2:52 we've already done git rebase main while on the feature_branch ?

    • @themoderncoder
      @themoderncoder  7 หลายเดือนก่อน

      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.

  • @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 หลายเดือนก่อน +1

    I don't think I saw a pitfall here - what did I miss?

    • @themoderncoder
      @themoderncoder  10 หลายเดือนก่อน +1

      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