The HIDDEN Git Trick for Resolving Merge Conflicts

Поділитися
Вставка
  • Опубліковано 1 чер 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 15 днів тому +36

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

    • @devopstoolbox
      @devopstoolbox  15 днів тому +1

      Ahhh a comment from the one and only! 💙

  • @anmol-fzr
    @anmol-fzr 13 днів тому +26

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

  • @AlexVKapa
    @AlexVKapa 7 днів тому

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

  • @BhEaN
    @BhEaN 15 днів тому +2

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

  • @Ulchie
    @Ulchie 15 днів тому +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  15 днів тому

      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

  • @PabloFernandezFranco
    @PabloFernandezFranco 15 днів тому

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

  • @0x6664
    @0x6664 11 днів тому

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

    • @devopstoolbox
      @devopstoolbox  11 днів тому +1

      The Moonlander 👀?
      Is that you??

    • @0x6664
      @0x6664 11 днів тому

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

    • @0x6664
      @0x6664 11 днів тому

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

    • @0x6664
      @0x6664 10 днів тому

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

  • @brotein_mancakes
    @brotein_mancakes 15 днів тому

    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  15 днів тому +1

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

  • @ZilverDx
    @ZilverDx 15 днів тому +3

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

  • @mohmaster732
    @mohmaster732 15 днів тому +1

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

    • @devopstoolbox
      @devopstoolbox  15 днів тому

      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 14 днів тому

      @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  14 днів тому

      @@mohmaster732 🙏🏽💪

  • @myusernameislongerth
    @myusernameislongerth 15 днів тому +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?

  • @JMIK1991
    @JMIK1991 10 днів тому

    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  10 днів тому

      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

  • @vivgui
    @vivgui 3 дні тому

    whats terminal prompt config? it looks beautiful!

    • @devopstoolbox
      @devopstoolbox  3 дні тому

      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 3 дні тому

      @@devopstoolbox thank you!

  • @jorge28624
    @jorge28624 15 днів тому +1

    git branch otra-rama

  • @Quephara
    @Quephara 15 днів тому

    Do you have a cold? It sounds like you do

    • @devopstoolbox
      @devopstoolbox  15 днів тому +1

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

    • @Markadown
      @Markadown 11 днів тому

      @@devopstoolbox can confirm