Build FASTER Using Git Trees, Neovim and LazyGit

Поделиться
HTML-код
  • Опубликовано: 9 июн 2024
  • Knowing the processes behind git, and how operations use them is crucial for speed.
    Avoiding merge commits can improve build times and make you (or your DevOps teams) life's better, and who doesn't want that?
    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
    ▶ Erik's website: erikzaadi.com/
    ▶ Dotfiles: github.com/omerxx/dotfiles
    ⏱ Timestamps
    00:00 - Intro
    00:58 - CI Flow
    02:10 - The problem with merge commits
    02:50 - Rebasing to solve the issue
    05:02 - Interactive Rebase with Neovim
    06:22 - Using LazyGit
    07:07 - The result
    #neovim #git #neogit #lazygit #terminal #vim #dev #devops #linux #console
  • НаукаНаука

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

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

    Great to see your channel and content grow, keep it up man. Your content has helped me grow my skills considerably

  • @ciscoserrano
    @ciscoserrano Месяц назад +4

    I love seeing your channel grow. Great video dude.

  • @catwhisperer911
    @catwhisperer911 Месяц назад +3

    I omit the --ff-only argument when merging a feature branch by rebasing off of its parent branch (the local branch from which the current branch was checked out from). While the difference appears minor, the benefit for me at least is how it promotes frequent fetching and pulling to the parent branch first, which makes testing more productive as you are not only testing your feature but also the feature's integration into the larger system. I admit this is a subjective approach but it has paid off numerous times while working on fast changing code bases. Thanks for sharing.

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

      I haven’t considered that! Thank you!

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

    Cool video I need this Thank you! Q, Which Keyswitch did you choose on your moonlander keyboard? I'm about to purchase one. Are you using zellig in the video?

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

      I’m using Tmux here!
      Went with the cherry red switches but ended up switching rather quickly to the Gateron yellow as they’re pre lubed and sound way better

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

    Banger as usual

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

    You are a DevOps legend!

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

    love your obsidian theme.. would you be able to share theme and settings

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

    This is great stuff, but I have to admit, 1:30 in and I'm distracted by your awesome diagramming tool. What is that?

  • @JohnWasinger
    @JohnWasinger 29 дней назад +1

    What diagramming tool are you using?

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

    So much useful stuff that’s all blocked in our huge monorepo. So I still have to endure 40+ minute wait times on a stupid JS project when merging a feature branch

  • @developonetwork
    @developonetwork 26 дней назад

    Which software are you using for presentation

  • @ZeRonaldo89
    @ZeRonaldo89 Месяц назад +4

    What is the program you are using to draw?

  • @cdenneen
    @cdenneen 24 дня назад +1

    I thought you switched from LazyGit to NeoGit because of context switching back in March?

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

      I switched from Fugitive to Neogit!
      Lazygit is more of a sidekick in my workflow when I do things more complicated outside Neogit's comfort zone

  • @codeman99-dev
    @codeman99-dev Месяц назад +1

    I don't get it. What was gained here? You certainly lost github's automatic commit message referencing the source PR.

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

      No merge commit -> same hash that was already built tested and shipped can be deployed to production == no testing / building, 100% confidence of the hash that was built + the ability to quickly deploy other already-built versions.

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

    Why not mention that the video and resource you've based all this on is not in the same language? I really was interested, but it is difficult to follow with only subtitles. Surely there was some other resource that also validates the point. Why not use that?

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

      I don’t have another resource unfortunately. The talk I based this on was given by a friend and I took it (with Erik’s permission) and what you see here is a translation of the idea to an English video, wrapped with additional context I thought was important.
      I don’t believe there’s another resource covering this one specific topic as it is a. Opinionated and b. Made by Erik
      However, if you do have something, please share and I’ll add it to the description.

  • @laughingvampire7555
    @laughingvampire7555 27 дней назад

    No, git trees are not filthy, what you have is a cultural bias from the west, there is an interesting video about this situation,`How culture made Japanese Internet design "Weird"` by Cynthia Zhou, *the video starts by comparing western web design vs Japanese web design* she explains what some sociologists have said about this in the past, the *West is analytical vs Eastern Asia is Holistic,* Analytical meaning we center on one thing at a time while Easters Asia focuses on the connections between multiple things, and the art and culture reflects all of this, including web design.
    To us, something like the git tree that reflects the multiple connections of things looks confusing just because we don't have the training for it, so is a skill's issue. Of course people in both sides have the skill of the other side, people in the west can be holistic and think better in terms of connection of things while people in east asia can follow the analytical mind focused on thing at a time. but the majority is the other way around.

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

      I’m sorry, while this really sounds interesting (and I’d love a link to the video) I don’t see how this changes the impact merge commits have on duplicate artifact and build times. Moreover, I don’t see how a holistic approach (?) sees merge commits differently 🤷