TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Git solves all your problems....Almost

13 点作者 eVizitei大约 16 年前

2 条评论

kailoa大约 16 年前
Stories like the above are way too common.<p>Despite how fantastic the tool is, git's biggest weakness is it's own opacity and steep learning curve. github's real magic is in indirectly getting git out of the way of the common coder. Sometimes it's through the GUI, and sometimes it's with helpful guides.<p>I suppose, when the core audience and developers are linux kernel hackers, usability is not going to be a priority.
评论 #604168 未加载
bradgessler大约 16 年前
You can't undo history like he wanted to in a distributed version control system like git. Rather, you have to revert the content/data while moving the history forward. Resets and rebasing will only work locally if the commits haven't been pushed out to remote branches. If you could just "undo" history, how would git know?<p>Had Ethan read about git-revert he might have stumbled into this link <a href="http://www.kernel.org/pub/software/scm/git/docs/v1.6.2.3/howto/revert-a-faulty-merge.txt" rel="nofollow">http://www.kernel.org/pub/software/scm/git/docs/v1.6.2.3/how...</a> that explains in more detail.<p>To Ethan's credit, Git is pretty difficult to use until you understand the model behind trees, commits, and blobs. I've been in his shoes where I blew away a bunch of work and screwed up everybody's remote branches :)