Git rebase is not that scary

Sdílet
Vložit
  • čas přidán 2. 04. 2024
  • Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdotcom
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...
  • Zábava

Komentáře • 35

  • @sahiljaiswal9270
    @sahiljaiswal9270 Před 9 dny

    suppose M1, M2,... mean commits in master branch and B1, B2, ... means commits in a particular branch. if you go to that branch and run git rebase master it does this:(M3 added as new commit before B1, B2 in branch's log)
    B1->B2 B1->B2
    ^ ^
    M1->M2->M3 M1->M2->M3
    and if you do the opposite, the main branch is shifted along the branch which is a problem. (B1,B2 added as new commits before M3 in master's log)

    B1->B2->M3...(master continues here)
    ^
    M1->M2

  • @KakatkarAkshay
    @KakatkarAkshay Před 2 měsíci +3

    In case you mess up the rebase but you haven't removed .git folder, you can use git reflog to get commit history before rebase. Rebase is really not hard. I find it's the same as cherry-pick. Btw you should also show git rebase -i and squash, edit and things.

    • @user-wy1pe3sl3t
      @user-wy1pe3sl3t Před měsícem

      hey bro need some help with git stashing, is there any way that i can contact u

    • @VictorYarema
      @VictorYarema Před 2 dny

      @@user-wy1pe3sl3t my simplest advice after insane amount of my best years with git: never ever touch stashes even with the longest stick in the world. They are like branches, but are simply incredibly limited. Absolutely no business value compared to branches. Just master branches and that would be enough for everything you may ever need.

  • @jk-sm6qr
    @jk-sm6qr Před 2 měsíci

    Cool, Very information and important.
    Thank you so much ❤

  • @ajaysubramaniam4453
    @ajaysubramaniam4453 Před 2 měsíci +1

    What is the difference between rebasing from master and feature branch?

  • @ratulsamanta9380
    @ratulsamanta9380 Před 2 měsíci +2

    Thank u for sharing such content. Really good content

  • @ShreyAsthana05
    @ShreyAsthana05 Před 4 dny

    what terminal are you using?

  • @zeroinfinity3610
    @zeroinfinity3610 Před dnem

    you can see the differene b/w didi bhiya course and hitseh sir's lectures

  • @uttamsharma3242
    @uttamsharma3242 Před 2 měsíci

    This was really very informative!!

  • @harshitpant07
    @harshitpant07 Před 2 měsíci +2

    what i learnt here is I don't care about the history so I don't care if their is a command called `git rebase feature ` .... :)

  • @afamsval
    @afamsval Před 2 měsíci

    Thank you Sir

  • @sivasai6890
    @sivasai6890 Před 2 měsíci

    Thank you so much sir❤

  • @sumedhux
    @sumedhux Před 2 měsíci +1

    Thumbnail is so nice

  • @shreyvasani8751
    @shreyvasani8751 Před 2 měsíci

    Can you provide notes ?

  • @RohitChhabirajYadav
    @RohitChhabirajYadav Před 2 měsíci

    Thank you sir ji

  • @ankushladani496
    @ankushladani496 Před 2 měsíci

    Add more comments guys don't only see content and go away.
    Atleast this man deserves a like and share.😊

  • @cyb3rjunky609
    @cyb3rjunky609 Před 2 měsíci

    you really are a great teacher

  • @amaurya5556
    @amaurya5556 Před 2 měsíci +1

    best git course out there

  • @not_amanullah
    @not_amanullah Před 2 měsíci

    thanks ❤

  • @VivekKumarito
    @VivekKumarito Před 2 měsíci +1

    Ho gaya bhai

  • @imamansoni
    @imamansoni Před 2 měsíci

    I'll watch this video again 1 or 2 times to get clear idea.

    • @imamansoni
      @imamansoni Před 2 měsíci

      Now i understand it a bit better 😅

  • @ankushladani496
    @ankushladani496 Před 2 měsíci

    💯💯🎉🎉

  • @2amCoder
    @2amCoder Před 2 měsíci

    what about abort? it will end everything?

  • @RohitChhabirajYadav
    @RohitChhabirajYadav Před 2 měsíci +1

    #git #github

  • @ofcljaved
    @ofcljaved Před 2 měsíci +1

    The main keypoint: NEVER DO REBASE ON MASTER/MAIN BRANCH... NEVER

  • @punk9004
    @punk9004 Před 2 měsíci

    Just scratched my head with the rebase over a os contribution and this video is like how I approached it but it took hours for me😂

  • @ankitkashyap2005
    @ankitkashyap2005 Před měsícem

    ❤❤

  • @Entire.Studio
    @Entire.Studio Před 2 měsíci

  • @munna5553
    @munna5553 Před 2 měsíci

    everyone please share this

  • @rishabh.jesani
    @rishabh.jesani Před 2 měsíci

    Continue AWS after this

  • @adityadarade6311
    @adityadarade6311 Před 2 měsíci

    comment

  • @coolwithsaquibaquib
    @coolwithsaquibaquib Před 2 měsíci

    Day 7 present

  • @user-qe3to6he1k
    @user-qe3to6he1k Před 2 měsíci