yashinomi / sysdev2020_advanced

0 stars 0 forks source link

Class 3. Exercise 5. log #10

Closed yashinomi closed 3 years ago

yashinomi commented 3 years ago

新しくブランチを作ってコミットをする。 途中でタグを打つこと

yashinomi commented 3 years ago

ブランチを作る。

$ git checkout -b br-a
Switched to a new branch 'br-a'
yashinomi commented 3 years ago

1コミット

$ echo hogehoge > hoge.txt
$ git add hoge.txt
$ git commit -m "hoge init"
[br-a 71f6b13] hoge init
 1 file changed, 1 insertion(+)
 create mode 100644 hoge.txt
yashinomi commented 3 years ago

2コミットとタグ付。

$ echo fugafuga > fuga.txt
$ git add fuga.txt
$ git commit -m "fuga init"
[br-a e007ec8] fuga init
 1 file changed, 1 insertion(+)
 create mode 100644 fuga.txt
$ git tag tag-a
yashinomi commented 3 years ago

3コミット。

$ vim readme.md
$ git add readme.md
$ git commit -m "add note" 
[br-a 585e277] add note
 1 file changed, 1 insertion(+)
yashinomi commented 3 years ago

ログの状態。

git log --graph --all                                                                 [15:38:10]
* commit 585e2772452bd4a408dd24158752bc209902ef06 (HEAD -> br-a)
| Author:
| Date:   Fri Oct 23 15:37:03 2020 +0900
| 
|     add note
| 
* commit e007ec8cba134de25aa6f64926aff8225be9498d (tag: tag-a)
| Author: 
| Date:   Fri Oct 23 15:34:38 2020 +0900
| 
|     fuga init
| 
* commit 71f6b1357e185cf10a83ed12319e3dd228434aa4
| Author: 
| Date:   Fri Oct 23 15:32:44 2020 +0900
| 
|     hoge init
| 
* commit cbae756b782609e58ec380f97ed08b2c3c20b000 (master)
| Author: 
| Date:   Fri Oct 23 15:13:51 2020 +0900
| 
|     all hunk
| 
* commit ce24a738631476a10fd4a3cdba7e21e87e24364c
| Author:
| Date:   Fri Oct 23 15:11:05 2020 +0900
| 
|     partial hunk
| 
* commit ff9444fa9302a63602ab6e84e6c67d2fe0e27844
| Author: 
| Date:   Fri Oct 23 15:06:46 2020 +0900
| 
|     init
| 
* commit d4bc849da5da155de027a4ed6d5ae4e1c05e658d
| Author: 
| Date:   Fri Oct 23 14:37:15 2020 +0900
| 
|     init
| 
* commit 7d5589d75575792483da4937cea26b81a057ac40
  Author: 
  Date:   Fri Oct 23 14:36:44 2020 +0900

      test