Git revert vs reset: What's the difference?

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

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

  • @ryanprasad2090
    @ryanprasad2090 9 месяцев назад +6

    Thanks for making this material for us!

    • @cameronmcnz
      @cameronmcnz  9 месяцев назад +1

      Thanks for watching!
      I made a bunch of short videos on specific topics in the past. Just published a long one on Git and GitHub. Check it out. It's got an upgraded mic and camera too!
      ruclips.net/video/l2yrJtwoC_E/видео.html

  • @pavelprchal8625
    @pavelprchal8625 Месяц назад +1

    100x better than established books!

    • @cameronmcnz
      @cameronmcnz  Месяц назад

      My goal was 1000x better. I have failed you. 😥
      Thanks for watching!

  • @DelkorYT
    @DelkorYT Год назад +1

    What if you pushed the bad commit to github before doing the reset? Then git pull would throw errors

    • @cameronmcnz
      @cameronmcnz  11 месяцев назад

      Yeah, don't do that.

    • @justchris5806
      @justchris5806 Месяц назад +1

      @@cameronmcnz A git push --force works
      But I think we should avoid that?

  • @ИванЖалдак-ю8у
    @ИванЖалдак-ю8у 11 месяцев назад +4

    what? Only 34 likes? You guys have no soul.

    • @cameronmcnz
      @cameronmcnz  11 месяцев назад +1

      I get no love on RUclips. 😥
      Thanks for watching!

  • @ayekoe
    @ayekoe 6 месяцев назад +1

    but advice, there are time where u need git revert!

    • @cameronmcnz
      @cameronmcnz  6 месяцев назад

      Git revert is so much safer than reset. You can't reset if you've pushed to GitHub or GitLab. But locally, I'm a 'git reset hard' type of guy!

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

    In all my years programming I have never found a good use of git revert.

    • @ayekoe
      @ayekoe 6 месяцев назад +1

      well u havent had much issues then

  • @yst7
    @yst7 7 месяцев назад +1

    Thank you very much !

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

    Thanks