在git clone之后,我立即看到“更改未进行提交”,git diff显示更改

时间:2016-01-28 15:09:38

标签: git github

克隆开发人员朋友正在处理的回购时,我的行为非常奇怪。在git clone后,我立即在检查modified时收到15个不同git status个文件的列表。

当我执行git diff时,我看到代码的实际更改。

-$this->title = 'Create Itemtype';
+$this->title = 'Create item type';

-    <h1><?= Html::encode($this->title) ?></h1>
-
     <?= $this->render('_form', [

git status的结果如下:

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
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:   backend/models/FeaturegroupItem.php
modified:   backend/models/FeaturegroupItemSearch.php
modified:   backend/models/VendorItemquestionansweroption.php
modified:   backend/models/VendorItemquestionansweroptionSearch.php
modified:   backend/modules/admin/views/Itemtype/_form.php
modified:   backend/modules/admin/views/Itemtype/create.php
modified:   backend/modules/admin/views/Itemtype/index.php
modified:   backend/modules/admin/views/Itemtype/update.php
modified:   backend/modules/admin/views/vendorItemquestionansweroption/_form.php
modified:   backend/modules/admin/views/vendorItemquestionansweroption/_search.php
modified:   backend/modules/admin/views/vendorItemquestionansweroption/create.php
modified:   backend/modules/admin/views/vendorItemquestionansweroption/index.php
modified:   backend/modules/admin/views/vendorItemquestionansweroption/update.php
modified:   backend/modules/admin/views/vendorItemquestionansweroption/view.php

no changes added to commit (use "git add" and/or "git commit -a")

0 个答案:

没有答案