9 Techniques to Boost Your Git Workflow with Magit

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

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

  • @AndrewEsh
    @AndrewEsh 3 года назад +13

    When viewing the log, if a log entry has been selected, the cursor is in the diff for that entry. If I type "C-x o" to switch the cursor back to the log entry list, I can then use "M-n" and "M-p" to move the selected log entry. When I do this, the diff changes to match. Being able to scroll through log history in diff format is one of my favorite features.

    • @SystemCrafters
      @SystemCrafters  3 года назад

      That's awesome, I hadn't seen that before!

    • @antoniocorbibellot6532
      @antoniocorbibellot6532 3 года назад +1

      Hi Andrew, how do you get this behaviour? In my case when I go back to the log entry list and move to another log entry I've to press Enter or Space to view the diff this other commit represents, the diff window doesn't update 'automagically'.

    • @AndrewEsh
      @AndrewEsh 3 года назад

      @@antoniocorbibellot6532 They key is to move the cursor with M-n (next, forward) and M-p (previous, backward). Then the diff changes with each keypress.

    • @AndrewEsh
      @AndrewEsh 3 года назад

      It looks as though "n" and "p" also work. Whatever calls magit-section-forward and magit-section-backward.

    • @antoniocorbibellot6532
      @antoniocorbibellot6532 3 года назад

      @@AndrewEsh Not for me. As I told before, after pressing (n. M-n, p or M-p) in the log buffer I've to press enter or space to get the diff...It must be some magit setting that I've not configured.

  • @alanmauriciocarrascoperez2188
    @alanmauriciocarrascoperez2188 3 года назад +3

    ufff This is the killing package, I love magit

  • @francoisdupont3082
    @francoisdupont3082 2 года назад +3

    You should do an ediff tutorial. It seems simple but I still don’t understand half the commands. This is the key area where mastering the right tool makes a huge difference.

  • @masteringlife404
    @masteringlife404 Год назад

    The command window is wonderfull !

  • @greg7mdp2
    @greg7mdp2 Год назад

    Another fantastic video! Looking forward to watching the third one.

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

    David, thanks for the content. It is really good! I have watched multiple hours of your content. Thank you very much!

  • @adrianlewis7239
    @adrianlewis7239 Год назад

    Thanks for the video upload. Magit looks like a real game changer, but there is a lot to learn and I keep going back to the terminal. But it's perseverance, I guess.

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

      It takes some time before Magit feels comfortable but once you reach that point you will never want to use the git command line again!

  • @lawrencejones51
    @lawrencejones51 Год назад

    Great tutorial. Thanks!

  • @rostranj2504
    @rostranj2504 3 года назад +2

    More Magit and Org Roam videos please!

    • @SystemCrafters
      @SystemCrafters  3 года назад +1

      Next Org Roam video is in development, Magit after that!

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

    Great work as always.

  • @fouad250
    @fouad250 3 года назад +2

    Thank you so much for this great video.please make video about Gnu Stow.

    • @marcin774
      @marcin774 3 года назад

      lucky you ;) ruclips.net/video/gibqkbdVbeY/видео.html

  • @Xdavidel
    @Xdavidel 3 года назад

    Great walkthrough.

  • @hooxenv9692
    @hooxenv9692 3 года назад +2

    Gods work right here

  • @goofansu
    @goofansu 3 года назад +1

    Great, love your work! Thanks

  • @juan768
    @juan768 3 года назад

    Just what I needed, thank you!

  • @To1ne
    @To1ne 3 года назад

    command-log posframe is nice!

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

    Great video even after eight month later!

  • @bullpup1337
    @bullpup1337 5 месяцев назад

    Is resolving merge conflicts discussed at all? I cannot find it in the timestamps

  • @rashie
    @rashie Год назад

    👍👍

  • @alexei3366
    @alexei3366 3 года назад

    How correct do "git pull" on one host after did "git push --force" on another host?

  • @pm71241
    @pm71241 3 года назад +1

    Actually ... using rebase does not force you to force-push. In fact ... if often ensures that your eventual push will be fast-forward.

    • @SystemCrafters
      @SystemCrafters  3 года назад +1

      Only if you haven't pushed the branch already. Once you push the branch, you will always have to force push the next time if you rebase and any of the existing commits have been modified, even if it was just to replay them on top of a new base commit.

    • @pm71241
      @pm71241 3 года назад

      @@SystemCrafters Not sure which push/pull scenario you end up in, but "git pull --rebase" will rebase the changed you did locally since last common ancestor with your upstream branch (in other words - when you last pushed) on top of the new head on the upstream branch.
      Those change should only be local to you and rebasing them will just do as pretending you just did a fresh checkout of the upstream branch and made all those changes on top of that.
      It's true that rebasing in general (from an arbitary point in your history) will potentiall rewrite stuff already pushed, but with "git pull --rebase" you will only rewrite stuff not already pushed.

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

    You don't have to use P (capital) to push, regular p also works (saves a shift press every time)

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

      In most Magit buffers, "p" moves to the previous section.

  • @leanidchaika
    @leanidchaika 8 месяцев назад

    How to do git cherry-pick in magit?

  • @drsnake6026
    @drsnake6026 3 года назад +3

    Once you go magit you never git back

  • @fluca1978
    @fluca1978 3 года назад +1

    magit is the only way I use git!

  • @TylerNickerson
    @TylerNickerson 3 года назад

    Is that a pun at 35:03-35:06?