How to git
- 2. まずはhelpの引き方
● git help <command>
● git <command> --help
● /doc/*
- 3. 用語集
● ヘルプを読んでいると多くの専門用語を見ます。
– blob, HEAD, refspec, tree-ish などなど・・・
● $ git help gitglossary
- 4. バージョン管理に必要な機能
● ファイルを版管理下へ追加
– git add
● バージョンの取り出し
– git checkout
● 変更の追加
– git add
● 履歴の表示
– git log
- 5. まずは試してみる・1
●
とりあえず何か書きはじめる
$ echo 'hi, git!' > scratch
●
急にバージョン管理したくなりました
– ファイルを管理対象に追加します
$ git add scratch
– コミットしましょう
$ git commit
– コミットログを書いたら保存しましょう(utf-8/LFで保存)
●
これで一つコミットできました
– これを続けていくのが一番簡単な方法です。