質問編集履歴
1
ちょっと修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,18 @@
|
|
20
20
|
|
21
21
|
git commit -m "3コミット"
|
22
22
|
|
23
|
+
echo "4です" > 4.txt
|
24
|
+
|
25
|
+
git add 4.txt
|
26
|
+
|
27
|
+
git commit -m "4コミット"
|
28
|
+
|
29
|
+
echo "5です" > 5.txt
|
30
|
+
|
31
|
+
git add 5.txt
|
32
|
+
|
33
|
+
git commit -m "5コミット"
|
34
|
+
|
23
35
|
git push origin master
|
24
36
|
|
25
37
|
```
|
@@ -30,19 +42,23 @@
|
|
30
42
|
|
31
43
|
git revert [2コミットのリビジョンid]
|
32
44
|
|
45
|
+
git revert [3コミットのリビジョンid]
|
46
|
+
|
47
|
+
git revert [4コミットのリビジョンid]
|
48
|
+
|
33
49
|
```
|
34
50
|
|
35
51
|
とすると
|
36
52
|
|
37
|
-
2.txtが消えて、1.txtと
|
53
|
+
2.txtと3.txtと4.txtが消えて、1.txtと5.txtのみとなります。
|
38
54
|
|
39
55
|
|
40
56
|
|
41
|
-
で、そのあとに
|
57
|
+
で、そのあとに3のコミットをログなどから追加することは可能でしょうか?
|
42
58
|
|
43
59
|
```ここに言語を入力
|
44
60
|
|
45
|
-
git なんとか [
|
61
|
+
git なんとか [3コミットのリビジョンid]
|
46
62
|
|
47
63
|
```
|
48
64
|
|