【发布时间】:2013-03-10 07:41:07
【问题描述】:
我想将另一个分支中存在的文件的不同版本加载到我当前的分支中。
git help checkout 说:
DESCRIPTION
Updates files in the working tree to match the version in the index or
the specified tree. If no paths are given, git checkout will also
update HEAD to set the specified branch as the current branch.
有没有办法检查所有这些文件,但不更新 HEAD?
【问题讨论】:
-
@BobbyA 我不这么认为。 1:问题和答案是关于其他的(分支和文件/文件夹名称冲突)。 2:这个问题比较老。
-
我标记了错误的问题(多个选项卡),立即意识到,并收回了标记。虽然我没有意识到有评论。我被抓住了!道歉 :) 现在删除该评论,因为它具有误导性
标签: git branch git-checkout