So You Think You Know Git Part 2 - DevWorld 2024

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 77

  • @jasonhuang1447
    @jasonhuang1447 8 місяців тому +102

    Didn’t know Pedro Pascal is such a git nerd.
    Amazing talk btw!!

  • @Gadrawingz
    @Gadrawingz 21 день тому +1

    The course is undestandable and the intro song was so entertaining!

  • @drewnoakes
    @drewnoakes 8 місяців тому +81

    It's not every day you learn several new git features to try out. Thanks for a great talk.

    • @gitbutlerapp
      @gitbutlerapp  8 місяців тому +5

      thanks for watching!

    • @kyle19421
      @kyle19421 8 місяців тому +1

      The best kinda days

  • @Jakob7539511
    @Jakob7539511 8 місяців тому +55

    Yoo I was really excited by the first talk, so great to see the part 2 :)

    • @MelroyvandenBerg
      @MelroyvandenBerg 8 місяців тому +2

      Some reason I'm watching this part 2 :D !!

  • @Fazal828
    @Fazal828 8 місяців тому +19

    Presentation so fire you triggered the alarms haha. Loved both of these and I could listen/use many more :D

  • @ruroruro
    @ruroruro 8 місяців тому +42

    17:13 I am apparently one of the "three guys". I wished for this option for a long time. This is a huge lifesaver.

    • @positronalpha
      @positronalpha 8 місяців тому +1

      Agree, super useful.

    • @shyrealist
      @shyrealist 7 місяців тому +2

      Came here to say this! `--update-refs` where have you been all my life!

    • @lindhe
      @lindhe 6 місяців тому

      I love it! ❤

  • @LarsBjerregaard
    @LarsBjerregaard Місяць тому

    Woah, I didn't know about git worktree. That seems really useful and I've done it the poor man's way a bunch of times. Thanks!

  • @SirGallahad09
    @SirGallahad09 8 місяців тому +3

    It's the best video I’ve watched the whole week. Thank you!

  • @QW3RTYUU
    @QW3RTYUU 3 місяці тому

    The guy is about them beers hah
    Nice hearing your talks, thanks for making them. Hopefully we'll have beers one day.

  • @positronalpha
    @positronalpha 8 місяців тому +21

    I've used fixup commits and rebasing for many years. Can't see how you'd get a clean, meaningful history without it.
    Lovely talk as always!

  • @gratux
    @gratux 7 місяців тому +1

    Damn, I would have appreciated knowing about worktrees about 2 weeks ago 🙃
    Always a chance to learn something new

  • @debemdeboas
    @debemdeboas 8 місяців тому +6

    i love these talks

  • @AndreGreeff
    @AndreGreeff 8 місяців тому +11

    had a thought around 5:11: I understand Linus' concept of not breaking backwards compatibility, so that `checkout` will continue to work even though there are newer commands that do the same thing, but if the idea is to have these new commands be "more semantic" than the old ones, why not at least show a message in terminal when using the old command to say "hey, there's a better way to do this now"...? surely that would help people who use Git every day (like me) to learn them more quickly.

  • @ZevIsert
    @ZevIsert 8 місяців тому +1

    Aside from the large repository stuff (scalar) I would have put my hand up for each question, and that makes me happy 😊 Great talk Scott!

  • @silak33
    @silak33 8 місяців тому +12

    I had no clue you don't need to do an interactive rebase to make autosquash work anymore... Nice to know :)

    • @gitbutlerapp
      @gitbutlerapp  8 місяців тому +3

      I believe this was _very_ recently added. 2.44 I think, so maybe a month ago?

    • @samrjack
      @samrjack Місяць тому

      I was trying to experiment with this feature and was confused why it wasn’t working without the interactive flag. Turns out I am still on 2.39. Thank you for the callout in the comments here so I know I’m not going crazy!

  • @Sandeep-zd6dq
    @Sandeep-zd6dq 8 місяців тому

    Hey Scott,
    I was barely able to get 50% of part 1 (some super heavy stuff for beginners) but this part was like you created this one for us only 🙌 the way you present these talks is just awesome 😂 please continue this series and let’s see a demo of gitbutler in the next part of this series and how’s about continuing this series until we don’t cover all 145 commands 😅😂

  • @marcgrec5117
    @marcgrec5117 8 місяців тому +5

    great idea to not repeat the talk 👍

  • @dudeman99999
    @dudeman99999 8 місяців тому +1

    Dude these talks are so useful!!

  • @AnonymousMaykr
    @AnonymousMaykr 4 місяці тому +1

    These are awesome, thanks!

  • @ark.1424
    @ark.1424 5 місяців тому

    great talk and great speaker!

  • @JanLund
    @JanLund 8 місяців тому +1

    Great presentation style! 👍🔀🚀

  • @mar-wv7rp
    @mar-wv7rp 8 місяців тому +3

    Pretty glad I subscribed to the youtube channel :3

    • @gitbutlerapp
      @gitbutlerapp  8 місяців тому +2

      We're glad you did too! We'll try to make it worth your while. Let us know what you might like to see.

  • @gekylafas
    @gekylafas 7 місяців тому

    `--update-refs` is great!

  • @v-sig2389
    @v-sig2389 8 місяців тому +4

    The most important thing to know about git : it is not a backup system, it is a collaboration system. You have to actually use backups with another software such as beyond compare, to reduce the risk of a bug in git that deletes files and folders.
    Sometimes you don't have 5 hours to become an expert at git and understand why it suddenly refused to save the modifications. The slightest mistake, misunderstanding, or misuse of a command can harshly punish you.

    • @positronalpha
      @positronalpha 8 місяців тому +1

      No need to become an expert - you only need to understand the fundamentals to be able to work confidently with Git. Watch Chacon's original introduction in order to really grok Git, and you'll find that it's quite difficult to get it to lose your data. Just set a branch before doing something tricky. If you also push that branch to some remote, it's virtually impossible to lose your stuff.

    • @marcellkovacs5452
      @marcellkovacs5452 8 місяців тому +1

      It’s version control, first and foremost. I have plenty of repos where I’m the only developer.
      I agree that it’s not a backup solution, i.e . if your disk is corrupted and you haven’t pushed your commits, you might lose data. However, as long as your file system is intact and you committed your change, basically anything “lost” can be recovered via git reflog.

  • @blizzy78
    @blizzy78 7 місяців тому

    worktrees are awesome

  • @joshuathomasbird
    @joshuathomasbird 8 місяців тому

    you didn't mention lefthook when talking about precommit and husky!!

  • @ClAddict
    @ClAddict 8 місяців тому +3

    Across the talks there have been several recommended git config -global options recommended. Is there a good place to go to see an exhaustive list of recommended configs based on new feature adds or even just a merge commit’s expert opinion on recommended config?

    • @markusklyver6277
      @markusklyver6277 8 місяців тому

      You can just read the git config man page.

    • @ClAddict
      @ClAddict 8 місяців тому

      @@markusklyver6277 recommendation (n): a suggestion or proposal as to the best course of action, especially one put forward by an authoritative body.

    • @ruroruro
      @ruroruro 8 місяців тому

      ​@@markusklyver6277 The man page for git config sucks for this (or at least it used to suck). It's huge and some of the more obscure options are documented extremely poorly (or even not documented at all).

  • @Sandeep-zd6dq
    @Sandeep-zd6dq 8 місяців тому

    Now onwards I will only use more domain specific/ explanatory commands instead of checkout I.e, switch and restore and allowing commit specific updates is also cool and yeah the best of all for jumbo repos I.e, scalar (any specific reason for not using git specific naming like git clone-heavy) 😂😎 I am feeling like if scalar might have introduced earlier then maybe pinterest never specify the refspec to reduce their clone time 🤪

  • @cusematt23
    @cusematt23 8 місяців тому +2

    If I had your public speaking skills I would be between 2x and 500x wealthier. Well done talk.

  • @stephiesmith6302
    @stephiesmith6302 7 місяців тому

    nice intro)

  • @duwangchew
    @duwangchew 8 місяців тому

    GitButler looks really cool and very helpful, but unfortunately switching to a GUI client would change my workflow too much so I have to stick with either using worktrees or straight up separate directories for different branches.

  • @markusklyver6277
    @markusklyver6277 8 місяців тому

    Those YAML configurable hooks looks nice, can these be globalized? I didn't get it to work.
    With the attributes, that's a nice feature. I configured it so that in addition to calling exiftool, it also adds the hash (by making a script). This way you can see that it changed despite no change in exif data. You can also make it so git diff fires up the different pictures visually side by side, if you want to.

  • @CyReVolt
    @CyReVolt 8 місяців тому +1

    The "restore" command semantically often makes less sense for me. I frequently check out changes I have never seen, stemming from other branches or even remotes, so it is definitely not restoring anything. So in many cases it fits, just "checkout" is more general.

  • @fxs2008
    @fxs2008 7 місяців тому

    When working in JetBrains IDEs, I use Change lists: for example, I can create one for dev changes (that I definitely don't want to commit), other ones per branch. When commit, I select only needed change list(s) and other changes are not affected. Overall, JetBrains commit tab is quite comfortable for me.

  • @kevincozens6837
    @kevincozens6837 8 місяців тому +1

    I didn't see much in this talk that seemed of interest for me to look in to. I can see worktrees being useful. I already have multiple branches of a project checked out in to different directories but git doesn't know about the collection of directories. Using worktrees I can make it aware of the other branches being worked on.

    • @keyd33
      @keyd33 8 місяців тому

      Same here, I have like 5 different directories called git-1, git-2... I will try tomorrow

  • @mlajv
    @mlajv 8 місяців тому +2

    Deeeespaaacito

    • @biggusmunkusthegreat
      @biggusmunkusthegreat 8 місяців тому

      Man they really skirted the copyright with that 😂 cool how they turned it into a beat though.

  • @MaxMalm
    @MaxMalm 8 місяців тому +1

    Why is Scott against a rebasing flow?

  • @mandokir
    @mandokir 6 місяців тому +1

    Scotch Cone.

  • @for-ever-22
    @for-ever-22 7 місяців тому

    I was scared during the first few seconds of the video. Thought I was lost

  • @MichalFilipek
    @MichalFilipek 8 місяців тому +1

    Update refs❤❤❤❤❤❤❤❤😂

  • @devviz
    @devviz 8 місяців тому

    _ICT🌌1AM March 26th 2024_

  • @harry-smith404
    @harry-smith404 8 місяців тому

    Yeah, renase with references on top would be damn useful 2 years ago for me =)Now I just try not to use that approach

  • @TheRealBigYang
    @TheRealBigYang 8 місяців тому

    and yet, -q and --quiet still don't work consistently

  • @hansvandenbogert8992
    @hansvandenbogert8992 7 місяців тому +1

    almost nobody used autofixup? Wth, I'll do you one better, start using git-absorb

  • @TesterAnimal1
    @TesterAnimal1 8 місяців тому

    Nope. I don’t think that! 😂

  • @K4iserchen
    @K4iserchen 8 місяців тому +1

    Damn, coming at you with commit hooks 😢😢. Really bad stuff

  • @RazoBeckett.
    @RazoBeckett. 8 місяців тому

    hi 🎉?

  • @DeVibe.
    @DeVibe. 8 місяців тому

    Nobody knows Git

  • @JohnSmith-op7ls
    @JohnSmith-op7ls 3 місяці тому +1

    That intro was almost as bad as Git. Use Mercurial or something else, Git is trash people think isn’t trash because so many people use it. It’s the JavaScript of change control.

  • @local-admin
    @local-admin 8 місяців тому +1

    OhNo, there's more 🫣