工具与资源www-cs-students.stanford.edu编辑精选
Git 魔法书
Git Magic
2010 — 2018,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
《Git Magic》是 Ben Lynn 编写的一本 Git 入门指南。它不急于讲解 Git 的内部数据模型,而是先教读者把 Git 当作简单的“保存点”系统来用,等读者体会到好处之后再深入原理,因此特别适合对 Git 有畏难情绪的新手。
为什么经久不衰:它用最友好、最不吓人的方式引导初学者进入 Git:先建立使用信心,再解释原理,这种教学顺序让它成为说服和入门的好材料。
HN 评论精选
批评教程只教命令不解释原理,不如官方文档。
这个教程试图用冗长的方式让读者熟悉命令,但我觉得这不是最好的办法。比如分支那一节,它让你运行某些命令(checkout -b)却不解释后台发生了什么。所以你可能在讲解的上下文里对命令有点感觉,但除非你的工作流和上下文相同,否则你不知道怎么用到自己的场景。相比之下,官方书非常清楚地说明每个命令在后台做什么,一旦理解,你就懂 Git 了。
msravi查看英文原文
This seems to try to get the reader familiar with commands in a verbose sort of way, but IMHO, that's not exactly the best way. See for example the section on branches - it tells you to run certain commands (checkout -b) without telling you what's happening in the background. So while you kind-of get a feel for the command in the context it's being explained, you wouldn't know how to apply it to your context, unless your workflow and context is the same. On the other hand, if you look at how branching is dealt with in the "official" book (https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell), it tells you very clearly what each command is doing in the background so you know exactly what's happening. Once you understand that, you know git.
独特之处在于先讲实用再讲原理,适合说服初学者。
很多 Git 教程在解释基本用法之前或之中就详细讲数据模型。这个指南不同,它用最简单的方式解释如何使用 Git——概念上只是把它当作制作保存点的系统——然后在展示系统优点之后再讲数据模型。如果你需要向一个可以选择不用 Git 或还没接受这个概念的人解释 Git,这是绝对最好的起点。
polm23查看英文原文
A lot of git tutorials go into detail about how the data model works as part of or even before explaining basic usage. This guide is different in that it explains how to use git in the simplest possible way - conceptually just as a system to make save points - and then covers the data model later after it's shown the merits of the system. If you need to explain git to someone who has the option of not using it or isn't sold on the whole idea in the first place, this is the absolute best place to start.
认为类比无用,直接讲核心三点即可。
所有这些 Git 教程都不错,可能对某些人有帮助。个人而言,我觉得所有那些所谓有用的类比都无用且令人困惑。如果我开始学 Git,我宁愿有人直接告诉我三件事:1. Git 每次提交保存目录的“完整”快照。2. 每个提交位于一个图中,并有一个指向父提交的指针。3. 唯一有多个父提交的提交是合并提交——它携带如何合并两个先前提交的数据。
yuvadam查看英文原文
All these git tutorials are nice, and they might be beneficial for some people. Personally, I find all these supposedly-helpful analogies useless and confusing. If I start to learn git, I would rather someone just tell me three things: 1. Git saves 'entire' snapshots of a directory on each commit. 2. Each commit resides in a graph and has a pointer to its parent 3. The only commit with more than one parent is a merge commit - which carries data on how to merge two previous commits.
作者朋友透露作者想更新,并有实体书。
我现在坐在 Ben 旁边,他对这些关注感到脸红。他说他一直想做个 v2。总之,如果你真的喜欢这个,可以考虑买实体书:链接。
charolastrauno查看英文原文
I'm sitting next to Ben right now, and he's blushing at all the attention. He says he keeps meaning to do a v2. Anyway, if you really like this, you should consider getting a physical copy: http://www.amazon.com/Git-Magic-Ben-Lynn/dp/1451523343/
历次讨论
同类还值得读
直接在浏览器中启动 Linux 内核
Boot a linux kernel right inside your browser.
Fabrice Bellard 的 JSLinux 页面,用 JavaScript 在浏览器里启动一个 Linux 内核,并提供一个可交互的终端环境。
工具与资源上首页 5 次 · 2011–2025bellard.orgHacker News 未公开功能与行为清单(2018)
A List of Hacker News's Undocumented Features and Behaviors (2018)
数据科学家 Max Woolf 整理的 Hacker News 未公开功能与行为清单,涵盖投票机制、排名算法、账号惩罚等社区运作细节。
工具与资源上首页 5 次 · 2019–2025github.comMapSCII:在终端中用盲文和 ASCII 渲染地图
MapSCII – Braille and ASCII map renderer for the console
MapSCII 是一个在命令行终端里渲染地图的开源工具,用盲文字符和 ASCII 字符把地理数据画成可交互浏览的字符地图。
工具与资源上首页 5 次 · 2017–2025github.com顶尖大学的免费在线课程
Free Online Courses from Top Universities
Open Culture 整理的一份免费在线课程合集,汇集了全球顶尖大学(如 MIT、斯坦福、耶鲁等)向公众开放的网络课程资源,涵盖音频、视频等多种形式。
工具与资源上首页 5 次 · 2010–2022openculture.com淘气字符串:容易引发用户输入问题的字符串清单
Naughty Strings: A list of strings likely to cause issues as user-input data
一个 GitHub 仓库,收录了大量容易让程序出问题的用户输入字符串,如特殊字符、emoji、SQL 注入片段、系统命令等,供开发者用于测试输入处理逻辑。
工具与资源上首页 4 次 · 2015–2020github.com