Video není dostupné.
Omlouváme se.

Git rebase basics

Sdílet
Vložit
  • čas přidán 12. 08. 2024
  • A lot of developers I met are confused about and even intimidated by git rebase. In this video I hope to explain it as simply as possible. I hope this is useful to you!
    Buy me a coffee: www.buymeacoffee.com/teamprog...
    Contents:
    0:00 Short sketch - thank you XKCD!
    0:15 White board explanation of what git rebase is
    7:09 Practicing git rebase in a terminal
    Next up: resolving conflicts with git rebase.
    Follow me online:
    LinkedIn: / alex-kovshovik
    Twitter: / ashovik
    Personal CZcams: / @alexkovshovik
    Instagram: / alex.kovshovik
    Facebook: / ashovik
    Mastodon: mastodon.social/@alex_kovshovik

Komentáře • 72

  • @semibenhsan9551
    @semibenhsan9551 Před 6 měsíci +3

    The best video on rebase on youtube ! Thanks a lot man !

  • @techinsider3611
    @techinsider3611 Před 4 měsíci +1

    thank you, bro. Watched your video after wasting 6 hours. I was just pushing using VS code after rebasing not force pushing. I almost quit programming. thank you so much

    • @AlexKovshovik
      @AlexKovshovik Před 4 měsíci +1

      You are very welcome, bro! Don't give up programming :)

  • @davidperry974
    @davidperry974 Před 3 lety +4

    This is such good information from an unfinished shed with a whiteboard nailed to the wall.

    • @teamprogrammer9650
      @teamprogrammer9650  Před 3 lety

      I shall rename the channel to Barn Programmer :) LOL. Thanks David!

  • @tejeswarsahu5578
    @tejeswarsahu5578 Před 2 lety +5

    This is very informative. Your white board explanation gives a clear idea like what is happening with merge commit and rebasing wrt graph.Earlier I used to clone the new repo when I see something like "can't merge" in my PR. But now I can solve the things very easily and confidently with rebasing.Thank you so much... :)

  • @dasrotrad
    @dasrotrad Před 2 lety +3

    Your intros are a scream! Love the humor.

  • @greyduck818
    @greyduck818 Před 2 lety

    Thanks a lot for having explain the need of force push instead of push!

  • @user-bk3fh9yv6r
    @user-bk3fh9yv6r Před rokem

    This was useful... please keep up the good work!

  • @Mary-oz6xv
    @Mary-oz6xv Před 2 lety +1

    Thank you! Very helpful!

  • @user-dd3hs1yr4x
    @user-dd3hs1yr4x Před rokem

    THANKS man. Keep going and make more videos !!

  • @liyingwu8605
    @liyingwu8605 Před rokem

    Thank you so much for your video!!

  • @JaredFL
    @JaredFL Před 2 lety +2

    Make more videos man. Your quality and editing is good and there's plenty more Git commands for video content.

    • @teamprogrammer9650
      @teamprogrammer9650  Před rokem +2

      I'm so sorry, have 4th child coming and I'm slammed at work lately :) Anyhow, thank you for your interest! I'm going to press forward!

  • @greyduck818
    @greyduck818 Před 2 lety

    You did an awesome job here! Let's make the next video!

  • @Mike-og4wc
    @Mike-og4wc Před 3 lety +1

    An awesome explanation, bro!

  • @TheSumanb
    @TheSumanb Před 2 lety +1

    please make related videos , its really helpful and thanks

  • @arturbbakhtriger
    @arturbbakhtriger Před rokem +1

    great material Alex

  • @aliabdollahian1465
    @aliabdollahian1465 Před 3 lety

    very helpful thank u :)

  • @ShivamSharma-dq4pu
    @ShivamSharma-dq4pu Před 6 měsíci

    main vs master . ahahahahha epic reference .
    awesome video. thanks

  • @zeyadmoamen3265
    @zeyadmoamen3265 Před rokem

    You Are Awesome 👏👏👏👏

  • @mrsalem8118
    @mrsalem8118 Před rokem +1

    Are you git god?) Very helpful!

  • @gaddp
    @gaddp Před 2 lety

    this is so good "af"!!!!!!

  • @FranckOlivier712
    @FranckOlivier712 Před 3 lety +1

    This is awesome! I usually clone a new copy of the repo rather than rebasing 😝😂

  • @sudhanshu-ranjan
    @sudhanshu-ranjan Před 2 lety +2

    Awesome 👏👏
    Can you please show when we will get conflicts while rebasing and then how we can resolve and commit the changes

  • @norbertomezzaucella9283

    Alrededores de 1:45
    Ocurre nuevamente
    Alrededor de 0:47
    But he tamed the jumping beast and there's was no need to edit

  • @balloth
    @balloth Před 6 měsíci

    "Make a copy of your local repo before rebase", or maybe just make a new branch and reset to it if you messed up the rebase.

  • @wilddough8859
    @wilddough8859 Před rokem +1

    Awesome explanation, can you tell me how you got your terminal looking the way it did?

    • @teamprogrammer9650
      @teamprogrammer9650  Před rokem +1

      Hey @WildDough, I used iTerm2 + a nice font "Fira Code" with ligatures enabled. Check out - it's pretty cool :)

  • @michaeli5113
    @michaeli5113 Před rokem +1

    thanks for simplified explanation, thisis great. one quick question, why do we need to run git rebase origin/main after updating out local main with git pull?

    • @AlexKovshovik
      @AlexKovshovik Před rokem +1

      When you run "git fetch origin main", it doesn't update your local "main" branch - it only updates the local information about the remote "origin/main" branch. You run "git rebase origin/main" to update your local "main" using that info received with "fetch" command.

    • @michaeli5113
      @michaeli5113 Před rokem +1

      So what if I run git pull after git fetch, and rebase my local before pushing.. Does does this do the same thing?

    • @AlexKovshovik
      @AlexKovshovik Před rokem

      @@michaeli5113 if you run the git pull, any remote changes will be added to you local branch: by either a merge commit or fast-forward (depending on your git client configuration). Merge commits are perfectly acceptable too, but if you’d like to keep your git commits nice and linear - you’re better off with rebase. This is explained more in my 2nd video (this channel)

  • @omersoncruz1081
    @omersoncruz1081 Před 19 dny

    I just subscribed thanks Zuckerberg!

  • @norbertomezzaucella9283
    @norbertomezzaucella9283 Před rokem +1

    First of all, thank you very much.
    I want to know what was funny at 0:50?
    Was about the sentence that started at 0:47?
    Is it because AF could also mean _as f.u.c.k_?
    I'm from Argentina and English isn't my first language.

    • @AlexKovshovik
      @AlexKovshovik Před rokem

      Hi Norberto, thanks for your comment!
      At 0:50 I named my branch "af" for "awesome feature", which in slang also means "as f*#k", to make it sound like "branch as f*#k" :)
      So you are absolutely right and your English as great! I'm from Belarus, so my English isn't native either.

    • @norbertomezzaucella9283
      @norbertomezzaucella9283 Před rokem

      ​@@AlexKovshoviktell your compatriotas that there's already a country named Russia.
      If the operator Bielo is is applied to russia, do you get una bellaRusia. Do you say you are cuter than them?
      Venezuela sorry ass Venice?
      The new england Patriots are almost an oxymoron

    • @norbertomezzaucella9283
      @norbertomezzaucella9283 Před rokem

      Were you in charge of edition?

    • @norbertomezzaucella9283
      @norbertomezzaucella9283 Před rokem

      Qué bueno que estuvo el comienzo!
      Are you related to that child?

    • @AlexKovshovik
      @AlexKovshovik Před rokem

      @@norbertomezzaucella9283 Belarus just sounds like bieloRussia, but it’s really a separate country.

  • @kermitdafrog8
    @kermitdafrog8 Před rokem +1

    Is there a Git cheat sheet somewhere?

    • @teamprogrammer9650
      @teamprogrammer9650  Před rokem

      Sure, lots of them. Lately you could even ask ChatGPT about exactly what you need git to do and it'll give you what you want. No more digging through documentation

    • @kermitdafrog8
      @kermitdafrog8 Před rokem

      @@teamprogrammer9650 I'm planning on setting up a bash script to do what I need.

  • @norbertomezzaucella9283
    @norbertomezzaucella9283 Před rokem +1

    I asked the guys that work with me if they have forced push something once ever

    • @teamprogrammer9650
      @teamprogrammer9650  Před rokem +1

      This sentence sounds like a sex joke LOL

    • @norbertomezzaucella9283
      @norbertomezzaucella9283 Před rokem

      @@teamprogrammer9650
      me reí cómo tres o cuatro veces distintas.
      Entonces te cuento una intimidad
      Comenté lo que les dije para no hablar de la respuesta.. Para que quede una sensación de incompleto

    • @norbertomezzaucella9283
      @norbertomezzaucella9283 Před rokem

      Debe ser la primera vez que no hago la asociación de
      forced
      con
      la categoría pornográfica

    • @norbertomezzaucella9283
      @norbertomezzaucella9283 Před rokem

      For being an intellectual ffuucckkiinngg teaser I was rewarded with funny interprétations now counting seex or fifes

  • @jacakopl
    @jacakopl Před 3 měsíci

    Same problem as every video on the internet- some abstract diagram. Not a real story of what the code and problem looks like.

    • @teamprogrammer9650
      @teamprogrammer9650  Před 3 měsíci

      I'm sorry for having wasted your time. Please file a complaint with our public relations and the refund will be issued promptly.

  • @DavidTalbot1974
    @DavidTalbot1974 Před rokem +1

    af 😀