TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git in one image

173 pointsby guptarohitover 3 years ago

19 comments

Skunkletonover 3 years ago
Lots of confused beginners in this thread. IMO diagrams, and tutorials, that take this approach to teaching git are the reason people have such a hard time. After learning the very basic commands, the next step is to learn the internal data structure of git at a conceptual level. This may seem like a bad design to some, and that is a reasonable thing to debate. It doesn’t change the reality that knowing basic git internals makes git much easier to use.
评论 #30314129 未加载
评论 #30314273 未加载
评论 #30327872 未加载
评论 #30314603 未加载
jacknewsover 3 years ago
Looks great!<p>My 12-year old questioned why a &#x27;pull request&#x27; is named the way it is. Obviously it&#x27;s after the command &#x27;git pull&#x27; which fetches the latest changes, then merges them, but it&#x27;s confusing according to him, and should be called a &#x27;merge request&#x27; instead. I don&#x27;t disagree.
评论 #30313456 未加载
评论 #30312399 未加载
评论 #30313452 未加载
评论 #30312848 未加载
评论 #30312656 未加载
评论 #30312415 未加载
评论 #30313494 未加载
评论 #30313337 未加载
评论 #30312491 未加载
评论 #30318575 未加载
评论 #30314346 未加载
W0lfover 3 years ago
The most recent computerphile YT video [1] is talking about the inner workings of git (Inside the hidden git folder) which I found quite interesting. Anybody reading this that came across some previous article about how git works and couldn‘t be bothered (just like me) may find this interesting.<p>[1] <a href="https:&#x2F;&#x2F;youtu.be&#x2F;bSA91XTzeuA" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;bSA91XTzeuA</a>
dijitover 3 years ago
Coincidentally there was a pretty good Computerphile video released today about how git is working under the hood: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bSA91XTzeuA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bSA91XTzeuA</a>
drewmolover 3 years ago
Ah, no wonder I’m so confused by git.
评论 #30313165 未加载
stblackover 3 years ago
Then there’s NDPSoftware’s Git Cheatsheet which is interactive.<p>Click or tap the backgrounds or the arrows.<p><a href="https:&#x2F;&#x2F;ndpsoftware.com&#x2F;git-cheatsheet.html#loc=local_repo;" rel="nofollow">https:&#x2F;&#x2F;ndpsoftware.com&#x2F;git-cheatsheet.html#loc=local_repo;</a>
VeninVidiaViciiover 3 years ago
I use Github but every time I do something it feels like I’m going to break the whole project. Looking at this map, I realize I basically know nothing.<p>Where did all you guys learn how to use GitHub?
评论 #30313346 未加载
评论 #30313547 未加载
评论 #30313323 未加载
评论 #30321147 未加载
评论 #30313829 未加载
bufordtwainover 3 years ago
OK but it shouldn&#x27;t be necessary to know what&#x27;s going on under the covers of your source code control system.
评论 #30314152 未加载
评论 #30313858 未加载
评论 #30313809 未加载
usrbinbashover 3 years ago
Probably the best way I have seen so far to explain git.<p>Whoever made this: Good work!
评论 #30311997 未加载
dahartover 3 years ago
Interesting idea, I’d love to have more context; to hear who this is aimed at, and what it’s for or how it’s meant to be used. Is this helpful for either git newbies, or git experts? I feel like if you don’t already know git, this map doesn’t actually explain what rebase or stash or clone or any commands really do without a very long side-explanation attached. The image doesn’t clarify what the wide arrows (e.g. reset) do differently than the solid lines or the dashed lines. It’s cool to see the local &amp; remote repos sort-of mapped out if you know git, but it seems like the explanatory power of this might be lower than talking about it, or maybe mixing many images, even for experts? Sorry I don’t mean to be overly critical, just curious what the goal is.
ublazeover 3 years ago
Does anyone know which tool can be used to make such visualizations?
评论 #30314186 未加载
评论 #30313860 未加载
gdulliover 3 years ago
Same energy as: <a href="https:&#x2F;&#x2F;ptrthomas.files.wordpress.com&#x2F;2006&#x2F;06&#x2F;jtrac-callstack1.png?w=349&amp;zoom=2" rel="nofollow">https:&#x2F;&#x2F;ptrthomas.files.wordpress.com&#x2F;2006&#x2F;06&#x2F;jtrac-callstac...</a><p>In that the image works equally well as elegance for some, and criticism for others.
评论 #30315100 未加载
sylwareover 3 years ago
Hey, can we get a rendered png somewhere? plz? (with a reasonable resolution for full HD screens)
hassancfover 3 years ago
I personally find this to be the best video on git by far:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=2sjqTHE0zok" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=2sjqTHE0zok</a> (MIT OpenCourseWare, Missing Semester).<p>1h25mn well spent
cuteboy19over 3 years ago
This only explains one particular git flow. A simpler explanation is possible especially when you don&#x27;t treat the named branches in a special manner
xbarover 3 years ago
Well done. Do +X&#x2F;-X represent exactly what is present in &quot;changes&quot;? If so, consistency in terminology would help.
pkdpicover 3 years ago
I wonder if torvalds had something like this on a whiteboard at some point. Or just in that big juicy brain of his maybe.
rochakover 3 years ago
Good job!
leathersoftover 3 years ago
Wow, good job!