Git bisect tutorial. How to find a bad bug commit.

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • Learn how to use git bisect to find a bad commit.
    What you will learn in this Git bisect tutorial:
    - what is git bisect
    - how to start the investigation
    - how to mark commits as good or bad
    - how to revert git commit
    What else would like to learn about Git? Let me know in the comments.
    -- Online Courses --
    Learn React
    ihatetomatoes....
    SUBSCRIBE
    / @ihatetomatoes
    LET'S CONNECT!
    -- ihatetomatoes....
    -- / ihatetomatoesblog
    -- www.google.com/...
    Petr Tichy
    -- plus.google.co...
    -- / ihatetomatoes

Комментарии • 53

  • @usmansbk
    @usmansbk 3 года назад +3

    Eat your veggies, young man! Nice Video

  • @Nellak2011
    @Nellak2011 2 года назад +7

    I love this feature! I just used it for the first time to find a bad commit. Luckily I push commits frequently, so that when I found it I saw a description of the change I made so I could easily narrow it down! It saved me so much time of debugging!!

  • @obonyoemmy
    @obonyoemmy 3 года назад +1

    Great tutorial. What's the beef with tomatoes though? :)

  • @fullstackprojects5615
    @fullstackprojects5615 3 года назад +1

    I love tomatoes

  • @ananddeepsingh
    @ananddeepsingh 4 года назад +1

    what will happen if I have some changes in latest commit for some other features and issue found in commit 2.
    Will it keep my latest changes and append commit 2 which was working code for animation? Please guide

  • @pheisar
    @pheisar 4 года назад +5

    Love the format of this series. Thank you!

  • @MattAlizadeh-b9k
    @MattAlizadeh-b9k 2 месяца назад

    How to make that colorful git-aware command prompt in VScode?

  • @akasharojee8569
    @akasharojee8569 3 года назад +1

    Quick helpful example. Thanks.

  • @salendarsinghgaud927
    @salendarsinghgaud927 2 года назад

    What if there is a merge commit that is bad commit. How we can bisect that merge commit?

  • @gracianomanuelhenrique9101
    @gracianomanuelhenrique9101 Год назад

    Awesome video
    Happy coding

  • @chrisaga6253
    @chrisaga6253 3 года назад +2

    Starts at 2:21

  • @ВячеславКузнецов-ф6ы

    great explanation, thank you

  • @Yuniac
    @Yuniac Год назад

    Thank you for the helpful video

  • @malharjajoo7393
    @malharjajoo7393 2 года назад

    git bisect run is even more helpful

  • @NtiyisoRikhotso
    @NtiyisoRikhotso Год назад

    Simplified, thanks!

  • @RandomAlexus
    @RandomAlexus 3 года назад +1

    so practical and straight to the point

  • @yurypapeka
    @yurypapeka 3 года назад +1

    Could you tell what does prettify your terminal for git?

    • @Ihatetomatoes
      @Ihatetomatoes  3 года назад +1

      That is ohmyzsh: github.com/ohmyzsh/ohmyzsh

  • @JosephLKausi
    @JosephLKausi Год назад

    thank you bro

  • @Scott_Stern
    @Scott_Stern Год назад

    Thanks for going through this. Awesome explanation. Gonna try and find something at work to use this on. Super helpful with tests as well.

  • @ayansarkar6322
    @ayansarkar6322 3 года назад

    I am doing git bisect good commitID4 but It will switch to another commit. Can you explain me the reason?

  • @Massimus888
    @Massimus888 2 года назад

    Thanks! Why did you use 'git revert'? Wouldn't it be better to use 'git rebase -i' and edit the original commit where the error happened. This would produce a simpler commit history.

  • @shilparani9080
    @shilparani9080 4 года назад

    It's such an amazing video :D It reminds me of the Leetcode First Bad Version question :P

  • @huseyinbarin1653
    @huseyinbarin1653 3 года назад

    very clear explanation. Thanks, body.

  • @centrist3684
    @centrist3684 3 года назад

    Not sure why I don't see a change in branch name when I do git bisect start, but otherwise works well

  • @khushnoodhussain1541
    @khushnoodhussain1541 Год назад

    thank you so much for the easy explanation.

  • @GomathinayagamN
    @GomathinayagamN 2 года назад

    Thank you! I find it very useful!

  • @yannic8344
    @yannic8344 2 года назад

    Thank you for the straight forward tutorial

  • @Zeioth
    @Zeioth Год назад

    Thank you for being so concise.

  • @luiswebdev8292
    @luiswebdev8292 2 года назад

    Nice tut

  • @regissmukubiza6350
    @regissmukubiza6350 2 года назад

    You're the best. it's more than clear

  • @bissallahekele5320
    @bissallahekele5320 2 года назад

    You're blowing my mind

  • @skarmoutsosv
    @skarmoutsosv 3 года назад

    Paused watching just after few seconds just to comment: Voice and lips are not in sync, voice is clear but uncomfortable, feels like too much edited (maybe lower frequencies have more gain than what they should).
    After viewing to the end, I have to admit that the subject was well explained. Thank you.

    • @Ihatetomatoes
      @Ihatetomatoes  3 года назад

      Thanks for the heads up. I will take that on board. Great to hear that the content was useful. Cheers

  • @nextstudiodev
    @nextstudiodev 3 года назад

    Worked like a charme! Thank you for this!

  • @eduardoauditore5414
    @eduardoauditore5414 3 года назад

    How can I configure my terminal console to look like yours? to have those colors and indicates that you are bisecting your code, because when I run that command nothing indicates that I'm bisecting

    • @Darkar9545
      @Darkar9545 3 года назад

      use gith bash if you are on windows, it wont look the same, but at least it will tell you that you are doing bisect

  • @benjaminodriscoll8692
    @benjaminodriscoll8692 2 года назад

    Great series thank you

  • @LeandroCoutinho
    @LeandroCoutinho 2 года назад

    Excellent sir!

  • @kingjosaphatchewa9804
    @kingjosaphatchewa9804 3 года назад

    Thanks a lot.

  • @eulnordiste1
    @eulnordiste1 4 года назад

    u look like moby

  • @eulnordiste1
    @eulnordiste1 4 года назад

    u look like moby

  • @TheNewton
    @TheNewton 4 года назад

    Need a way to find bad thumbnail typos with git

    • @Ihatetomatoes
      @Ihatetomatoes  4 года назад

      Haha, oops. Good catch Paul, thanks for the heads up. I think there is a command for that "git tn --fix" :)

  • @paulkevinkoehler9490
    @paulkevinkoehler9490 4 года назад

    Very nice. Thanks, Petr 😎

  • @shirshendudebroy2097
    @shirshendudebroy2097 4 года назад

    simply amazing...

  • @jamesguo222
    @jamesguo222 4 года назад

    Wow, magic.

    • @Ihatetomatoes
      @Ihatetomatoes  4 года назад

      Love your feedback! Keep it up.

    • @jamesguo222
      @jamesguo222 4 года назад

      @@Ihatetomatoes about how we have Thomas?