gitコマンド勉強会 第0回 はじめに

12
Gitコマンド勉強会 0はじめに

Upload: -

Post on 14-Jul-2015

126 views

Category:

Engineering


5 download

TRANSCRIPT

Page 1: Gitコマンド勉強会 第0回 はじめに

Gitコマンド勉強会

第0回 はじめに

Page 2: Gitコマンド勉強会 第0回 はじめに

アジェンダ

● 勉強会の趣旨● 勉強会の開催について● Gitとは

Page 3: Gitコマンド勉強会 第0回 はじめに

勉強会の趣旨

● この勉強会を通じて、Gitのコマンドによる操作の便利さ、効率の良さを知ってもらう。

● Gitのコマンドの紹介・実践していく事により、コマンドによる操作ができるようになる。

Page 4: Gitコマンド勉強会 第0回 はじめに

勉強会の開催について

● 毎週水曜日 19時〜 開催● 1回に付き1コマンドを説明● 1回15分程度を予定● 自由参加

Page 5: Gitコマンド勉強会 第0回 はじめに

Git とは● Git は分散型リポジトリのバージョン管理システ

ムです。

Page 6: Gitコマンド勉強会 第0回 はじめに

分散型リポジトリ?

● 共有で使うリポジトリとは別に、個別で使うローカルリポジトリがある。

● 個人用があるので好き放題に使うことが可能。● SVNは集中型リポジトリ

Page 7: Gitコマンド勉強会 第0回 はじめに
Page 8: Gitコマンド勉強会 第0回 はじめに

SubversionとGitにおけるフローの違い

Subversion初回

リポジトリからソースを取得(svn checkout)

運用

1. ソースを更新(svn update)2. ソースを変更3. リポジトリへ反映(svn commit)

Git初回

共有リポジトリをローカルリポジトリへコピー(git clone)

運用

1. ローカルリポジトリを更新(git fetch)2. ソースを更新(git merge)3. 上記2つを同時に行う(git pull)4. ソースを変更5. ステージへ追加(git add)6. ローカルリポジトリへ反映(git commit)7. 共有リポジトリへ反映(git push)

Page 9: Gitコマンド勉強会 第0回 はじめに

参考サイト本当は怖くない!デザイナーがGitを大好きになった♡5つの理由

http://nanapi.co.jp/blog/2014/04/23/git-love/

Page 10: Gitコマンド勉強会 第0回 はじめに

Git コマンド% gitusage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS]

The most commonly used git commands are: add Add file contents to the index bisect Find by binary search the change that introduced a bug branch List, create, or delete branches checkout Checkout a branch or paths to the working tree clone Clone a repository into a new directory commit Record changes to the repository diff Show changes between commits, commit and working tree, etc fetch Download objects and refs from another repository grep Print lines matching a pattern init Create an empty git repository or reinitialize an existing one log Show commit logs merge Join two or more development histories together mv Move or rename a file, a directory, or a symlink pull Fetch from and merge with another repository or a local branch push Update remote refs along with associated objects rebase Forward-port local commits to the updated upstream head reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index show Show various types of objects status Show the working tree status tag Create, list, delete or verify a tag object signed with GPG

See 'git help COMMAND' for more information on a specific command.

Page 11: Gitコマンド勉強会 第0回 はじめに

アンケートのお願い

より良い勉強会を開催するために、アンケートへの記入にご協力ください。

http://goo.gl/7QRgEA

Page 12: Gitコマンド勉強会 第0回 はじめに

ご清聴ありがとうございました。