Live data from Hacker News

Understanding Git for real by exploring the .git directory

medium.com

11–20 of 92 posts

Re: Understanding Git for real by exploring the .git directory

#14
post #4

I've been using git at work for a couple of years and I haven't spent very much time thinking about the internals at all. It just seems to work pretty much, though sometimes I get into a weird state and just delete and redownload.

That's the thing, there is almost no reason to ever have to delete and redownload. Moreover, the reason that git is dominant is (network effects, and) because it is solving the right problem with the right internal abstractions. It has even managed to become popular in spite of its user interface.

Re: Understanding Git for real by exploring the .git directory

#15
post #12

I look at this, and then I look at people wondering why non-coders don't use version control, and I laugh and laugh.

I don't think this article is a very good argument why non-coders don't use it. They don't care about the internals. Git's CLI, well, that's a good reason why they don't. (but you can get quite a lot of the benefits with a few basic commands via a GUI tool, and you totally can explain that to many non-coding users)

Re: Understanding Git for real by exploring the .git directory

#17
How many "Understanding Git" posts have hit #1 on Hacker News? More than a few. How many have hit top 10? Surely dozens.

Can we, please, take this as an indicator that Git is too fucking complicated? After the first thousand "Git made easy" blog posts it should have been apparent.

Le sigh.

Re: Understanding Git for real by exploring the .git directory

#18
post #14
post #4

I've been using git at work for a couple of years and I haven't spent very much time thinking about the internals at all. It just seems to work pretty much, though sometimes I get into a weird state and just delete and redownload.

That's the thing, there is almost no reason to ever have to delete and redownload. Moreover, the reason that git is dominant is (network effects, and) because it is solving the right problem with the right internal abstractions. It has even managed to become popular in spite of its user interface.

Yeah usually there's a way I can figure it out but if it takes more than 15 seconds it's easier to just clone the repo again.

Re: Understanding Git for real by exploring the .git directory

#19
post #7

I feel this one is more well-written and complete: https://codewords.recurse.com/issues/two/git-from-the-inside...

That and The Git Parable (http://tom.preston-werner.com/2009/05/19/the-git-parable.htm...) gave me a wonderful understanding of Git.

Re: Understanding Git for real by exploring the .git directory

#20
post #2

The most enlightening introduction to git internal model (graph of commits) and how the main commands alter it I have read so far: https://jwiegley.github.io/git-from-the-bottom-up/ I think it is slightly more relevant to understand the model than the .git/ structure since the .git/ folder is just an implementation detail.

The point of this is to also understand just the implementation.
Post reply on HN