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.

Gitlet: Git implemented in JavaScript

332 pointsby fogusover 10 years ago

16 comments

maryrosecookover 10 years ago
I wrote a short post about how and why I made Gitlet: <a href="http://maryrosecook.com/blog/post/introducing-gitlet" rel="nofollow">http:&#x2F;&#x2F;maryrosecook.com&#x2F;blog&#x2F;post&#x2F;introducing-gitlet</a>
评论 #8932174 未加载
评论 #8933188 未加载
评论 #8932592 未加载
Procrastesover 10 years ago
I really liked your &quot;Git in 600 words.[1]&quot; I think it will help clear up some confusion for some of my VCS wary colleagues.<p>1. <a href="http://maryrosecook.com/blog/post/git-in-six-hundred-words" rel="nofollow">http:&#x2F;&#x2F;maryrosecook.com&#x2F;blog&#x2F;post&#x2F;git-in-six-hundred-words</a>
评论 #8932520 未加载
评论 #8933058 未加载
patcollover 10 years ago
See also: <a href="https://github.com/creationix/js-git" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;creationix&#x2F;js-git</a><p>Kickstarter: <a href="https://www.kickstarter.com/projects/creationix/js-git" rel="nofollow">https:&#x2F;&#x2F;www.kickstarter.com&#x2F;projects&#x2F;creationix&#x2F;js-git</a>
Sir_Cmpwnover 10 years ago
I&#x27;ve asked GitHub to enable CORS for their https git endpoints, and I&#x27;m not the first. Email them at support@github.com if you can think of some cool stuff to do with that enabled.
zyxleyover 10 years ago
It would be interesting to see this baked into a browser-based text editor. Make it fully client side and you can potentially save the git history in localstorage and use it as an offline web app. I wonder if there are any git servers that support websockets...
评论 #8932692 未加载
评论 #8934602 未加载
fileartsover 10 years ago
This is a collossal effort and a huge community service. Thank you for being so thorough in documenting your work. Even if others don&#x27;t directly use your code, you have given the world a great template to understand and implement git!
skeohover 10 years ago
Some might also find js-git interesting: <a href="https://github.com/creationix/js-git" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;creationix&#x2F;js-git</a>
评论 #8932199 未加载
zrailover 10 years ago
OT: I love the typography on your site, especially the little touches like the decenders overlapping link underlines.<p>edit: after some research turns out the link underline styling is a Safari thing. My point stands, though, the typography is wonderful.
caipreover 10 years ago
&gt; Sometimes, I can only understand something by implementing it. So, I wrote Gitlet, my own version of Git. I pored over tutorials. I read articles about internals. I tried to understand how API commands work by reading the docs, then gave up and ran hundreds of experiments on repositories and rummaged throught the .git directory to figure out the results.<p>When the source itself is available, why not just read the code? I understand using articles and documentation to get the high to mid level view, but why not go to the real source of truth if it&#x27;s available?
评论 #8932361 未加载
评论 #8932368 未加载
评论 #8933467 未加载
hyp0over 10 years ago
A related way to learn is from git&#x27;s initial source, which was quite small. <a href="https://news.ycombinator.com/item?id=8650483" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8650483</a><p>Warning: the file format has changed slightly.
phatak-devover 10 years ago
Superb effort.
joelthelionover 10 years ago
What are the expected use cases?
评论 #8934634 未加载
评论 #8934291 未加载
jokoonover 10 years ago
how are files handled ?
nhlx2over 10 years ago
Why JavaScript?
评论 #8935764 未加载
brianwillisover 10 years ago
This is the most extreme example of Atwood&#x27;s law that I&#x27;ve seen so far of.<p>Any volunteers for making an operating system kernel? Or has that been done already?
评论 #8932258 未加载
评论 #8932223 未加载
评论 #8932193 未加载
评论 #8932213 未加载
gitspiritover 10 years ago
git is a tool that have to be introduced to as many as possible, even non-developers. In essence git is a fundamental part of the future global world collaboration. One can&#x27;t overestimate the gits value.
评论 #8934324 未加载