Git重置未分级的文件

时间:2015-10-16 15:27:03

标签: git

我做了以下步骤:

git clone my/repo && cd my/repo
git remote add other some/remote
git fetch --all --prune --tags
git checkout -b newbranch
git reset --hard other/newbranch

现在有一个非暂存文件。此repo中的任何分支或远程中都没有.gitattribute文件。 (所以它与Unstaged changes left after git reset --hard

不一样

修改

如果我这样做

git checkout -b newbranch other/newbranch

而不是最后两行,我仍然有非分页文件。

是什么导致这种情况?

0 个答案:

没有答案
相关问题