目前我正在使用yii2,tfs。我需要迁移到我自己的git服务器。
已设置本地git服务器
现在我git init我的本地yii2项目
现在git status
会返回所有未跟踪的文件。
然后我git add .
然后我检查git status
但它给了我
$ git status
On branch 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)
(commit or discard the untracked or modified content in submodules)
modified: vendor/kartik-v/yii2-date-range (untracked content)
modified: vendor/kartik-v/yii2-grid (untracked content)
modified: vendor/kartik-v/yii2-widget-depdrop (modified content)
modified: vendor/kartik-v/yii2-widget-fileinput (untracked content)
no changes added to commit (use "git add" and/or "git commit -a")
我不知道那是什么我没有对这些文件进行更改
供应商中有许多软件包,但正因如此,它们仍未被跟踪和修改。
然后我按照提示说,但它给了我$ git commit -m "a"
On branch master
Changes not staged for commit:
modified: vendor/kartik-v/yii2-date-range (untracked content)
modified: vendor/kartik-v/yii2-grid (untracked content)
modified: vendor/kartik-v/yii2-widget-depdrop (modified content)
modified: vendor/kartik-v/yii2-widget-fileinput (untracked content)
no changes added to commit
我再次检查git status
文件是否未跟踪和修改
运行git diff
我得到了这个
$ git diff
diff --git a/vendor/kartik-v/yii2-date-range b/vendor/kartik-v/yii2-date-range
--- a/vendor/kartik-v/yii2-date-range
+++ b/vendor/kartik-v/yii2-date-range
@@ -1 +1 @@
-Subproject commit c7177cd89cc90772acc96a05fbf5996f67127e4c
+Subproject commit c7177cd89cc90772acc96a05fbf5996f67127e4c-dirty
diff --git a/vendor/kartik-v/yii2-grid b/vendor/kartik-v/yii2-grid
--- a/vendor/kartik-v/yii2-grid
+++ b/vendor/kartik-v/yii2-grid
@@ -1 +1 @@
-Subproject commit fe29bcf8f46bde42aa3eb067851b38dc07cd4d8a
+Subproject commit fe29bcf8f46bde42aa3eb067851b38dc07cd4d8a-dirty
diff --git a/vendor/kartik-v/yii2-widget-depdrop b/vendor/kartik-v/yii2-widget-depdrop
--- a/vendor/kartik-v/yii2-widget-depdrop
+++ b/vendor/kartik-v/yii2-widget-depdrop
@@ -1 +1 @@
-Subproject commit 6918ca6f7d7be153c80f6aa9c261f9b333293e9c
+Subproject commit 6918ca6f7d7be153c80f6aa9c261f9b333293e9c-dirty
diff --git a/vendor/kartik-v/yii2-widget-fileinput b/vendor/kartik-v/yii2-widget-fileinput
--- a/vendor/kartik-v/yii2-widget-fileinput
+++ b/vendor/kartik-v/yii2-widget-fileinput
请解释我到底是什么以及我如何处理它?</ p>