Git ドリル 入門編(演習)をやってみた。

先日の http://www.javaring.info/slides/GitDrill/index.htmlをやってみた。
とりあえず、改行コードの警告は気にしない方向で。

最初のコミット

$ git init
Initialized empty Git repository in c:/gitwork/git_drill/.git/

$ echo "A" >> drill.txt

$ git add drill.txt
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.

$ git commit -m "commit A"
[master (root-commit) c0cc73c] commit A
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 drill.txt

さらにコミット

$ echo "B" >> drill.txt

$ git add drill.txt
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.

$ git commit -m "commit B"
[master warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
895d5cf] commit B
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
1 files changed, 1 insertions(+), 0 deletions(-)

ブランチを作ってコミット

$ git checkout -b topicC
Switched to a new branch 'topicC'

$ echo "C" >> drill.txt

$ git add drill.txt
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.

$ git commit -m "commit C"
[topicC warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
e56d0ff] commit C
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
1 files changed, 1 insertions(+), 0 deletions(-)

ブランチをのばす

$ echo "D" >> drill.txt

$ git add drill.txt
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.

$ git commit -m "commit D"
[topicC warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
f7c7c3f] commit D
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
1 files changed, 1 insertions(+), 0 deletions(-)

$ git checkout master
Switched to branch 'master'

$ echo "E" >> drill.txt

$ git add drill.txt
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.

$ git commit -m "commit E"
[master warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
9be2a21] commit E
warning: LF will be replaced by CRLF in drill.txt.
The file will have its original line endings in your working directory.
1 files changed, 1 insertions(+), 0 deletions(-)

とりあえず、ここまでは問題ない、のかな?

適当なところにブランチを生やす

???今の知識じゃ分からない。。。
勉強してからやるということで、今日はここまで。