最初に、新しくクローンしたレポで git status を実行しました
$ git status
On branch Test
nothing to commit, working directory clean
今、別のディレクトリからテスト プロジェクトをコピーします。
$ git status
On branch Test
Untracked files:
(use "git add <file>..." to include in what will be committed)
Test/
no thing added to commit but untracked files present (use "git add" to track)
以下はファイルです
$ ls Test -a
./ ../ .classpath .gitignore .project Test.class Test.java
しかし、 git diff は以下の結果を示します
$ git diff
基本的に、何もありません。しかし、ステージングして git diff -cached を実行すると、次のように表示されます
$ git diff --cached
diff --git a/Test/.classpath b/Test/.classpath
new file mode 100644
index 0000000..233be1d
--- /dev/null
+++ b/Test/.classpath
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path=""/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
diff --git a/Test/.gitignore b/Test/.gitignore
new file mode 100644
index 0000000..a9819ad
--- /dev/null
+++ b/Test/.gitignore
@@ -0,0 +1 @@
+/Test.class
diff --git a/Test/.project b/Test/.project
new file mode 100644
index 0000000..b6bd205
....
ステージングせずに上記の変更を確認するにはどうすればよいですか (つまり、コピーされたフォルダーがステージングされていない間)。
ここでgitの仕組みを説明してください。最初のコミットなしで、コピーされたフォルダー/ファイルの変更を確認することは可能ですか?