More Related Content
Similar to Git勉強会 2016 Gitで卒論を管理しよう回
Similar to Git勉強会 2016 Gitで卒論を管理しよう回 (20)
Git勉強会 2016 Gitで卒論を管理しよう回
- 3. 覚えていってほしいもの
1. git の準備 init
2. コミット add & commit
3. 巻き戻し操作 rebase
4. ブランチ操作 brunch & marge
5. リモートリポジトリ操作 clone & pull & push
3
はじめに
- 18. 18
$ git init <directory>
1.プログラミングをする前
新しい
作業ディレクトリ
.gitフォルダを含む新規フォルダが作成される
+
.git
- 62. 62
$ git reset (option) (commit ID)
3. 巻き戻したいとき
↑ commit ID(commit IDは HEAD^^ でも指定できる)
- 67. 67
$ git reset --hard HEAD^^
3. 巻き戻したいとき
1st commit
HEAD^^
2nd commit
HEAD^
latest commit
HEAD
ワークツリー
- 74. 74
$ git branch [name]
name
master
commit デフォルトは「master」
ブランチを新規作成
4. 新機能を追加したいとき
- 76. 76
$ git merge [name]
name
master
commit
ブランチを統合
4. 新機能を追加したいとき
編集中
commit
- 102. 覚えていってほしいもの
1. git の準備 init
2. コミット add & commit
3. 巻き戻し操作 rebase
4. ブランチ操作 brunch & marge
5. リモートリポジトリ操作 clone & pull & push
102
まとめ
- 113. 113
$ git commit --allow-empty -m "revised by (校閲者)"
論⽂作成の流れ
master
1st
"init"
"add 1.1" "add 1.2"
"revised by ~~"
- 118. 118
1. git clone で論⽂テンプレートをダウンロード
2. リモートリポジトリにgitlabのリポジトリを設定
3. 0thブランチを作成
4. document/introduction.tex の1.1節 を編集
5. コメントつけてコミット
6. リモートリポジトリにプッシュ
7. マージ
やることリスト