質問編集履歴
1
ちょっと修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,17 +9,25 @@
|
|
9
9
|
echo "3です" > 3.txt
|
10
10
|
git add 3.txt
|
11
11
|
git commit -m "3コミット"
|
12
|
+
echo "4です" > 4.txt
|
13
|
+
git add 4.txt
|
14
|
+
git commit -m "4コミット"
|
15
|
+
echo "5です" > 5.txt
|
16
|
+
git add 5.txt
|
17
|
+
git commit -m "5コミット"
|
12
18
|
git push origin master
|
13
19
|
```
|
14
20
|
|
15
21
|
```ここに言語を入力
|
16
22
|
git revert [2コミットのリビジョンid]
|
23
|
+
git revert [3コミットのリビジョンid]
|
24
|
+
git revert [4コミットのリビジョンid]
|
17
25
|
```
|
18
26
|
とすると
|
19
|
-
2.txtが消えて、1.txtと
|
27
|
+
2.txtと3.txtと4.txtが消えて、1.txtと5.txtのみとなります。
|
20
28
|
|
21
|
-
で、そのあとに
|
29
|
+
で、そのあとに3のコミットをログなどから追加することは可能でしょうか?
|
22
30
|
```ここに言語を入力
|
23
|
-
git なんとか [
|
31
|
+
git なんとか [3コミットのリビジョンid]
|
24
32
|
```
|
25
33
|
のような形で
|