質問編集履歴
2
状態の追記2
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
---
|
38
38
|
|
39
|
-
<追記>
|
39
|
+
<追記1>
|
40
40
|
|
41
41
|
|
42
42
|
|
@@ -95,3 +95,47 @@
|
|
95
95
|
|
96
96
|
|
97
97
|
という結果が出ます。
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
---
|
102
|
+
|
103
|
+
<追記2>
|
104
|
+
|
105
|
+
```ここに言語を入力
|
106
|
+
|
107
|
+
$ rm -rf directory1/.git
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
としても、
|
112
|
+
|
113
|
+
```ここに言語を入力
|
114
|
+
|
115
|
+
$ git ls-files
|
116
|
+
|
117
|
+
directory1
|
118
|
+
|
119
|
+
$ git add .
|
120
|
+
|
121
|
+
$ git commit
|
122
|
+
|
123
|
+
ブランチ master
|
124
|
+
|
125
|
+
nothing to commit, working directory clean
|
126
|
+
|
127
|
+
```
|
128
|
+
|
129
|
+
と先ほどと結果は変わりませんでした。
|
130
|
+
|
131
|
+
ちなみに、homeの中にdirectory1, .gitがある状態で、
|
132
|
+
|
133
|
+
```ここに言語を入力
|
134
|
+
|
135
|
+
$ cd home
|
136
|
+
|
137
|
+
$ git add directory1
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
などとしています。
|
1
状態の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,3 +31,67 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
なお、.gitignoreはこのディレクトリには存在しません。
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
---
|
38
|
+
|
39
|
+
<追記>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
$ git ls-files
|
44
|
+
|
45
|
+
directory1
|
46
|
+
|
47
|
+
$ git status ignored
|
48
|
+
|
49
|
+
ブランチ master
|
50
|
+
|
51
|
+
nothing to commit, working directory clean
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
となります。
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
$ cd directory1
|
60
|
+
|
61
|
+
とすると
|
62
|
+
|
63
|
+
$ git ls-files
|
64
|
+
|
65
|
+
file1 file2 file3 directory1 directory2 directory3 ...
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
とdirectory1内のファイル、ディレクトリが表示されます。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
$ cd directory1
|
74
|
+
|
75
|
+
$ git add .
|
76
|
+
|
77
|
+
$ cd ..
|
78
|
+
|
79
|
+
$ git commit
|
80
|
+
|
81
|
+
とすると、
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
ブランチ master
|
86
|
+
|
87
|
+
Changes not staged for commit:
|
88
|
+
|
89
|
+
modified: directory1 (modified content)
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
no changes added to commit
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
という結果が出ます。
|