faster git recloning* (intermediate) anthony explains

  Рет қаралды 2,808

anthonywritescode

anthonywritescode

Күн бұрын

Пікірлер: 18
@cakeinsauce
@cakeinsauce 4 ай бұрын
Congrats on 40k Anthony, thanks for the effort you put into knowledge sharing!
@alexandreboisselet8336
@alexandreboisselet8336 4 ай бұрын
4:56 I didn’t loose my head 😂
@jaopredoramires
@jaopredoramires 4 ай бұрын
Wait what was that move? You can just mv without specifying where to? Or am I missing on curly braces syntax
@anthonywritescode
@anthonywritescode 4 ай бұрын
ahah your lucky day! kzbin.info/www/bejne/qGOqYaWYopyLgM0
@BenjaminWheeler0510
@BenjaminWheeler0510 4 ай бұрын
Could this be useful for large teams who all need to clone a repo?
@anthonywritescode
@anthonywritescode 4 ай бұрын
yep! we used a version of this at Yelp but before dissociate existed (so lots of corrupted git repos if you forked a non-upstream branch)
@bomarni
@bomarni 2 ай бұрын
Out of interest would worktrees help with this workflow or not related?
@anthonywritescode
@anthonywritescode 2 ай бұрын
sort of, they solve a different problem and don't remove local ref state (which was one of the goals at least in my situation)
@mrswats
@mrswats 4 ай бұрын
Is there a way to dissociate a repo after you have cloned? I'm the way you can unshallow a shallow cloned repository.
@anthonywritescode
@anthonywritescode 4 ай бұрын
apparently `git repack -a -d` and then manually deleting the alternates file - a little spooky (but that's all that dissociate does)
@mrswats
@mrswats 4 ай бұрын
@@anthonywritescode nice!
@sq546
@sq546 4 ай бұрын
great wideo!
@MrMongoosesRawesome
@MrMongoosesRawesome 4 ай бұрын
Curious if all-repos could use this? Or maybe it's not necessary since it does a shallow clone?
@anthonywritescode
@anthonywritescode 4 ай бұрын
possibly! even with shallow clones there should be some object reuse (at least for the final tree)
@doongjohnlee820
@doongjohnlee820 4 ай бұрын
Is it same as duplicating the project dir and doing the `git clean -df && git restore .` in the duplicated dir?
@anthonywritescode
@anthonywritescode 4 ай бұрын
it depends, the clone will also retrieve any new objects since the original clone (so it's only equivalent if upstream has not diverged)
@FunkyELF
@FunkyELF 4 ай бұрын
I wonder if cloning with --dissociate and --reference actually copies objects on disk or if it creates hardlinks. I know if you `git clone file:///path/to/repo` it'll create new files but if you `git clone /path/to/file` it creates hardlinks.
@anthonywritescode
@anthonywritescode 4 ай бұрын
pretty easy to just try it and find out!
oops I'm the pyuwsgi maintainer now (intermediate) anthony explains #579
22:55
how does python's module `__getattr__` actually work?
17:38
anthonywritescode
Рет қаралды 6 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
stop making giant changesets!
14:12
anthonywritescode
Рет қаралды 7 М.
The Only Database Abstraction You Need | Prime Reacts
21:42
ThePrimeTime
Рет қаралды 231 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН
simplifying sorting! (all code sucks) #09
6:36
anthonywritescode
Рет қаралды 7 М.
debugging flaky cascading failure after upgrading pytest!
26:15
anthonywritescode
Рет қаралды 3,8 М.
Everything You'll Need to Know About Git with ThePrimeagen | Preview
14:43
Was I Wrong About Blazor? | Coding Shorts 111
16:35
Shawn Wildermuth
Рет қаралды 29 М.
Docker Image BEST Practices - From 1.2GB to 10MB
7:15
Better Stack
Рет қаралды 124 М.