The HIDDEN Git Trick for Resolving Merge Conflicts

Поделиться
HTML-код
  • Опубликовано: 9 июн 2024
  • This handy trick, that even Git's docs consider "hidden", could have saved me so much frustration in the past... Better late than never I guess: meet Git "rerere".
    Ways to support this channel:
    🎓 My course: learn.omerxx.com/courses/seco...
    📰 Become a better engineer in just 3 minutes a week: signup.omerxx.com
    ⌨️ Tech I use: kit.co/omerxx/my-battle-station
    LINKS
    ▶ git-scm.com/book/en/v2/Git-To...
    ▶ Dotfiles: github.com/omerxx/dotfiles
    ⏱ Timestamps
    00:00 - Intro
    01:14 - Configuration
    01:35 - Walk through
    06:10 - Under the hood
    07:11 - Merge conflicts with Vim
    #neovim #git #neogit #lazygit #terminal #vim #dev #devops #linux #console
  • НаукаНаука

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

  • @typecraft_dev
    @typecraft_dev 23 дня назад +36

    I'm a simple guy. I see Devops Toolbox, I hit the like button

    • @devopstoolbox
      @devopstoolbox  23 дня назад +1

      Ahhh a comment from the one and only! 💙

  • @BhEaN
    @BhEaN 23 дня назад +2

    Nice!! I didn't know this Git feature, thanks for sharing!

  • @AlexVKapa
    @AlexVKapa 14 дней назад

    Today we learnt how to resolve simple merge conflict in 8 minutes... great job!

  • @Ulchie
    @Ulchie 22 дня назад +4

    This was making me a bit squeamish until I saw that it didn't just move on through the rebase when using the previous resolution. Nice feature that thankfully is not entirely automated. Definitely the right call by the implementers.

    • @devopstoolbox
      @devopstoolbox  22 дня назад

      I agree. Until figuring it stops I was a little puzzled / worried about unwanted results but it's pretty simple if you look under the hood

  • @anmol-fzr
    @anmol-fzr 21 день назад +27

    Do not use github's logo as git's logo.!!

  • @PabloFernandezFranco
    @PabloFernandezFranco 22 дня назад

    Great video ! Watching here from Spain. I hope your Spanish learning is going well :)

  • @0x6664
    @0x6664 19 дней назад

    Great feature thanks for sharing. And thanks for getting one of our keyboard :)

    • @devopstoolbox
      @devopstoolbox  18 дней назад +1

      The Moonlander 👀?
      Is that you??

    • @0x6664
      @0x6664 18 дней назад

      @@devopstoolbox I work with ZSA, mainly on developing Oryx and Keymapp and some hardware stuff.

    • @0x6664
      @0x6664 18 дней назад

      @@devopstoolbox I work with ZSA, developing Oryx and Keymapp as well as some other hardware stuff.

    • @0x6664
      @0x6664 18 дней назад

      I work with ZSA, developing Oryx and Keymapp and some other hardware stuffs.

  • @brotein_mancakes
    @brotein_mancakes 23 дня назад

    Nice video. I’d never heard of git rerere (the name of the command does not roll of the tongue tho… ha). I’m looking forward to trying this out. Thanks!
    Btw your Moonlander tenting game is strong. I’ve got the tenting kit on mine but haven’t gone too far with it yet.

    • @devopstoolbox
      @devopstoolbox  22 дня назад +1

      Totally the worst name ever 😆
      And yeah - I figured if I'm going to tent it lets go all the way :)

  • @ZilverDx
    @ZilverDx 23 дня назад +3

    Easy to remember this git command. BTW in spanish H is mutted which means it sounds like ola ;-)

  • @mohmaster732
    @mohmaster732 22 дня назад +1

    How are you getting the tenting on your moonlander so high? I'd love to try that on my ergodox ez

    • @devopstoolbox
      @devopstoolbox  22 дня назад

      I got the platform kit from ZSA. There are plenty of community templates you can 3D print but I decided to went with the robust solution. It's a little pricy but I love it

    • @mohmaster732
      @mohmaster732 22 дня назад

      @devopstoolbox awesome I'll check that out. Thank you, and I really enjoy your videos! I've referenced your dotfiles quite a few times while fleshing out my neovim config

    • @devopstoolbox
      @devopstoolbox  22 дня назад

      @@mohmaster732 🙏🏽💪

  • @myusernameislongerth
    @myusernameislongerth 23 дня назад +3

    what makes your cat do all that - line numbers, syntax highlight? is that something else that you call cat? I know cat -n does the line numbers, but rest?

  • @vivgui
    @vivgui 11 дней назад

    whats terminal prompt config? it looks beautiful!

    • @devopstoolbox
      @devopstoolbox  11 дней назад

      Thanks! This is starship! I have a video covering its configuration but if you want to just see mine it's here - dotfiles.omerxx.com

    • @vivgui
      @vivgui 11 дней назад

      @@devopstoolbox thank you!

  • @JMIK1991
    @JMIK1991 17 дней назад

    I like simple things, including merger errors.
    If it happens, I've done something really wrong, or I'm not alone.
    They are not scary, and I should always know about it, as it tells things are working correctly.

    • @devopstoolbox
      @devopstoolbox  17 дней назад

      If you watched you know you’ll always be aware of the mistake, the resolving change is also pointed out and never comited for you… more of a suggestion than an auto-fix

  • @jorge28624
    @jorge28624 23 дня назад +1

    git branch otra-rama

  • @Quephara
    @Quephara 22 дня назад

    Do you have a cold? It sounds like you do

    • @devopstoolbox
      @devopstoolbox  22 дня назад +1

      I DID! Still trying to figure whether it made my voice sexier 😆

    • @Markadown
      @Markadown 19 дней назад

      @@devopstoolbox can confirm