4 ms·
Oh yeah, the Git internals... I tried to find my way through them using visualization but did not progress much: https://github.com/smartmic/git2pic https://git
by smartmic 3y ago
Oh yeah, the Git internals...
I tried to find my way through them using visualization but did not progress much: https://github.com/smartmic/git2pic https://github.com/smartmic/git2pic
- metaltyphoon 3y agoThis was my aha! Momment https://youtu.be/P6jD966jzlk?si=YNKrNf872IQqr1vj https://youtu.be/P6jD966jzlk?si=YNKrNf872IQqr1vj
- gjf 3y agoI tried to do something similar: https://articles.foletta.org/post/git-under-the-hood/ https://articles.foletta.org/post/git-under-the-hood/
- sillysaurusx 3y agoI encourage everyone to read A Plumber's Guide to Git: https://alexwlchan.net/a-plumbers-guide-to-git/ https://alexwlchan.net/a-plumbers-guide-to-git/ It's not a book, just a series of five short blog posts. Part 1 explains precisely where files live: https://alexwlchan.net/a-plumbers-guide-to-git/1-the-git-object-store/ https://alexwlchan.net/a-plumbers-guide-to-git/1-the-git-obj... $ mkdir animals $ cd animals $ git init $ echo "Big blue basilisks bawl in the basement" > animals.txt $ git hash-object -w animals.txt b13311e04762c322493e8562e6ce145a899ce570 $ find .git/objects -type f .git/objects/b1/3311e04762c322493e8562e6ce145a899ce570 $ rm animals.txt $ git cat-file -p b13311e04762c322493e8562e6ce145a899ce570 > animals.txt Congratulations, you just did a `git restore animals.txt` manually. Parts 2 through 5 are equally illuminating.
- bloopernova 3y agoThank you a thousand times for sharing that. I just ran through the examples and they were very enlightening.
- srathi 3y agoIt is fun to explore the Git internals! Some time back, I used it to learn Golang [1]. Two birds with one stone! [1] https://github.com/ssrathi/gogit https://github.com/ssrathi/gogit
- totetsu 3y agoI found this page had very easy to understand visuals https://www.devopsschool.com/blog/git-tutorial-objects-references-the-index/ https://www.devopsschool.com/blog/git-tutorial-objects-refer...
- I_complete_me 3y agoLet me add the You Tube series - Git and GitHub for Poets - for the poets, students and teachers. Not to everyone's taste but what is?