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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Confused by Git? Here's a Git crash course to fix that

11 点作者 chrisa超过 5 年前

2 条评论

eesmith超过 5 年前
I don&#x27;t think this is all that helpful.<p>&gt; Git gives you a FULLY FEATURED repository on your local computer ... This is different than other version control systems<p>I use Mercurial and am confused by git. This statement of course doesn&#x27;t seem right to me, since Mercurial is &quot;FULLY FEATURED&quot; too.<p>&gt; Commit tree (local repo or HEAD)<p>Is &quot;HEAD&quot; or &quot;local repo&quot; an alias for either each other or for &quot;commit tree&quot;?<p>Because I think HEAD is a special location of the commit tree in the local repository - these are three different things, yes?<p>&gt; Think of files (and changes) as being in 5 different places, or &quot;states&quot;<p>So, what&#x27;s a &quot;stash&quot;? Not explained. Why do I need to know about stash?<p>&gt; git reset and git checkout to pull from upstream<p>Someone confused because of experience from one of those &quot;other version control systems&quot; which are not so fully featured might not know what &quot;pull&quot; means. Or &quot;upstream&quot;.
评论 #20932936 未加载
chakmamoney超过 5 年前
Thanks