Тёмный

So You Think You Know Git Part 2 - DevWorld 2024 

GitButler
Подписаться 18 тыс.
Просмотров 66 тыс.
50% 1

Scott Chacon's DevWorld 2024 talk on Git Tips and Tricks. Learn more at blog.gitbutler.com
Scott talks about:
00:00 Intro
00:33 Welcome
02:05 About Me
02:24 How Well Do you Know Git
03:19 Agenda
03:31 Switch and Restore
05:55 Hooks
08:33 Attributes
09:44 Smudge and Clean
10:08 Smudge and Clean: RCS Keywords
10:42 Smudge and Clean: Date
11:14 Smudge and Clean: LFS
12:25 Fixup Commits
15:41 Rebasing Stacks
17:58 Update Refs by Default
18:15 Scaling Git: Scalar
19:53 Worktrees
21:23 GitButler
22:43 Close

Опубликовано:

 

31 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@jasonhuang1447
@jasonhuang1447 2 месяца назад
Didn’t know Pedro Pascal is such a git nerd. Amazing talk btw!!
@gitbutlerapp
@gitbutlerapp 2 месяца назад
😂
@drewnoakes
@drewnoakes 2 месяца назад
It's not every day you learn several new git features to try out. Thanks for a great talk.
@gitbutlerapp
@gitbutlerapp 2 месяца назад
thanks for watching!
@kyle19421
@kyle19421 2 месяца назад
The best kinda days
@Jakob7539511
@Jakob7539511 2 месяца назад
Yoo I was really excited by the first talk, so great to see the part 2 :)
@MelroyvandenBerg
@MelroyvandenBerg 2 месяца назад
Some reason I'm watching this part 2 :D !!
@ruroruro
@ruroruro 2 месяца назад
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 2 месяца назад
Agree, super useful.
@shyrealist
@shyrealist 2 месяца назад
Came here to say this! `--update-refs` where have you been all my life!
@lindhe
@lindhe 16 дней назад
I love it! ❤
@positronalpha
@positronalpha 2 месяца назад
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!
@Fazal828
@Fazal828 2 месяца назад
Presentation so fire you triggered the alarms haha. Loved both of these and I could listen/use many more :D
@AndreGreeff
@AndreGreeff 2 месяца назад
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.
@v-sig2389
@v-sig2389 2 месяца назад
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 2 месяца назад
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 2 месяца назад
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.
@silak33
@silak33 2 месяца назад
I had no clue you don't need to do an interactive rebase to make autosquash work anymore... Nice to know :)
@gitbutlerapp
@gitbutlerapp 2 месяца назад
I believe this was _very_ recently added. 2.44 I think, so maybe a month ago?
@debemdeboas
@debemdeboas 2 месяца назад
i love these talks
@gitbutlerapp
@gitbutlerapp 2 месяца назад
thanks!
@SirGallahad09
@SirGallahad09 2 месяца назад
It's the best video I’ve watched the whole week. Thank you!
@ZevIsert
@ZevIsert 2 месяца назад
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!
@marcgrec5117
@marcgrec5117 2 месяца назад
great idea to not repeat the talk 👍
@gratux
@gratux 2 месяца назад
Damn, I would have appreciated knowing about worktrees about 2 weeks ago 🙃 Always a chance to learn something new
@dudeman99999
@dudeman99999 2 месяца назад
Dude these talks are so useful!!
@mar-wv7rp
@mar-wv7rp 2 месяца назад
Pretty glad I subscribed to the youtube channel :3
@gitbutlerapp
@gitbutlerapp 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.
@Sandeep-zd6dq
@Sandeep-zd6dq 2 месяца назад
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 😅😂
@JanLund
@JanLund 2 месяца назад
Great presentation style! 👍🔀🚀
@gekylafas
@gekylafas Месяц назад
`--update-refs` is great!
@ClAddict
@ClAddict 2 месяца назад
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 2 месяца назад
You can just read the git config man page.
@ClAddict
@ClAddict 2 месяца назад
@@markusklyver6277 recommendation (n): a suggestion or proposal as to the best course of action, especially one put forward by an authoritative body.
@ruroruro
@ruroruro 2 месяца назад
​@@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).
@blizzy78
@blizzy78 2 месяца назад
worktrees are awesome
@stephiesmith6302
@stephiesmith6302 Месяц назад
nice intro)
@markusklyver6277
@markusklyver6277 2 месяца назад
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.
@joshuathomasbird
@joshuathomasbird 2 месяца назад
you didn't mention lefthook when talking about precommit and husky!!
@Sandeep-zd6dq
@Sandeep-zd6dq 2 месяца назад
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 🤪
@CyReVolt
@CyReVolt 2 месяца назад
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.
@MaxMalm
@MaxMalm 2 месяца назад
Why is Scott against a rebasing flow?
@cusematt23
@cusematt23 2 месяца назад
If I had your public speaking skills I would be between 2x and 500x wealthier. Well done talk.
@duwangchew
@duwangchew 2 месяца назад
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.
@mlajv
@mlajv 2 месяца назад
Deeeespaaacito
@biggusmunkusthegreat
@biggusmunkusthegreat 2 месяца назад
Man they really skirted the copyright with that 😂 cool how they turned it into a beat though.
@mandokir
@mandokir 9 дней назад
Scotch Cone.
@for-ever-22
@for-ever-22 2 месяца назад
I was scared during the first few seconds of the video. Thought I was lost
@BrawlStars-jd7jh
@BrawlStars-jd7jh 2 месяца назад
it caught me off guard
@kevincozens6837
@kevincozens6837 2 месяца назад
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 2 месяца назад
Same here, I have like 5 different directories called git-1, git-2... I will try tomorrow
@fxs2008
@fxs2008 Месяц назад
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.
@MichalFilipek
@MichalFilipek 2 месяца назад
Update refs❤❤❤❤❤❤❤❤😂
@devviz
@devviz 2 месяца назад
_ICT🌌1AM March 26th 2024_
@harry-smith404
@harry-smith404 2 месяца назад
Yeah, renase with references on top would be damn useful 2 years ago for me =)Now I just try not to use that approach
@bigyang5847
@bigyang5847 2 месяца назад
and yet, -q and --quiet still don't work consistently
@TesterAnimal1
@TesterAnimal1 2 месяца назад
Nope. I don’t think that! 😂
@K4iserchen
@K4iserchen 2 месяца назад
Damn, coming at you with commit hooks 😢😢. Really bad stuff
@RazoBeckett.
@RazoBeckett. 2 месяца назад
hi 🎉?
@gitbutlerapp
@gitbutlerapp 2 месяца назад
hi
@hansvandenbogert8992
@hansvandenbogert8992 Месяц назад
almost nobody used autofixup? Wth, I'll do you one better, start using git-absorb
@DeVibe.
@DeVibe. 2 месяца назад
Nobody knows Git
@local-admin
@local-admin 2 месяца назад
OhNo, there's more 🫣
Далее
Every React Concept Explained in 12 Minutes
11:53
Просмотров 361 тыс.
Git MERGE vs REBASE: The Definitive Guide
9:39
Просмотров 58 тыс.
Backstage or result?😈🔥 @milanaroller
00:12
Просмотров 2,8 млн
I need your help..
00:28
Просмотров 3,1 млн
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Просмотров 82 тыс.
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 954 тыс.
ThePrimeagen Hacks My Productivity
3:30
Просмотров 32 тыс.
Naming Things in Code
7:25
Просмотров 1,9 млн
98% Cloud Cost Saved By Writing Our Own Database
21:45
Просмотров 269 тыс.
How principled coders outperform the competition
11:11
Signals. I spent 2 years to understand this part.
21:24
Set up a Mac in 2024 for Power Users and Developers
1:00:34