The HIDDEN Git Trick for Resolving Merge Conflicts

Sdílet
Vložit
  • čas přidán 29. 06. 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
  • Věda a technologie

Komentáře • 35

  • @typecraft_dev
    @typecraft_dev Před měsícem +37

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

    • @devopstoolbox
      @devopstoolbox  Před měsícem +2

      Ahhh a comment from the one and only! 💙

  • @AlexVKapa
    @AlexVKapa Před měsícem +1

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

  • @BhEaN
    @BhEaN Před měsícem +3

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

  • @Ulchie
    @Ulchie Před měsícem +5

    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  Před měsícem

      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 Před měsícem +29

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

  • @brotein_mancakes
    @brotein_mancakes Před měsícem +1

    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  Před měsícem +1

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

  • @PabloFernandezFranco
    @PabloFernandezFranco Před měsícem

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

  • @0x6664
    @0x6664 Před měsícem

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

    • @devopstoolbox
      @devopstoolbox  Před měsícem +1

      The Moonlander 👀?
      Is that you??

    • @0x6664
      @0x6664 Před měsícem

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

    • @0x6664
      @0x6664 Před měsícem

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

    • @0x6664
      @0x6664 Před měsícem

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

  • @ZilverDx
    @ZilverDx Před měsícem +3

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

  • @JMIK1991
    @JMIK1991 Před měsícem

    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  Před měsícem

      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

  • @mohmaster732
    @mohmaster732 Před měsícem +1

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

    • @devopstoolbox
      @devopstoolbox  Před měsícem

      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 Před měsícem

      @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  Před měsícem

      @@mohmaster732 🙏🏽💪

  • @myusernameislongerth
    @myusernameislongerth Před měsícem +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 Před měsícem

    whats terminal prompt config? it looks beautiful!

    • @devopstoolbox
      @devopstoolbox  Před měsícem

      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 Před měsícem

      @@devopstoolbox thank you!

  • @jorge28624
    @jorge28624 Před měsícem +1

    git branch otra-rama

  • @Quephara
    @Quephara Před měsícem

    Do you have a cold? It sounds like you do

    • @devopstoolbox
      @devopstoolbox  Před měsícem +1

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

    • @Markadown
      @Markadown Před měsícem

      @@devopstoolbox can confirm