为什么git将文件重置为以前的版本?

时间:2018-11-02 05:12:38

标签: git git-clone git-reset

您知道,我的计算机上有git问题。我在控制台中键入了clone命令,但是三个文件在那里被修改为以前的版本。所以...当我打开IDE时,这三个文件已修改标签。我多次尝试了克隆命令,但问题仍然存在。

我正在使用

git 2.15.1(Apple Git-101)

Webstorm IDE 2018.2

已完成的步骤

cd go/to/path

git clone url-repo

所以...我输入git status,控制台显示类似

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working
directory)

modified:   src/app/http/controllers/Controller.js
modified:   src/app/models/PermissionModel.js
modified:   src/app/models/RoleModel.js

我不明白,如果该项目是最近被克隆的。

对不起,我的英语。 :3感谢您的回答。

0 个答案:

没有答案
相关问题