SlideShare a Scribd company logo
1 of 5
Download to read offline
git使い方
まずはhelpの引き方
●   git help <command>
●   git <command> --help
●   /doc/*
用語集
●   ヘルプを読んでいると多くの専門用語を見ます。
    –   blob, HEAD, refspec, tree-ish などなど・・・


●   $ git help gitglossary
バージョン管理に必要な機能
●   ファイルを版管理下へ追加
    –   git add
●   バージョンの取り出し
    –   git checkout
●   変更の追加
    –   git add
●   履歴の表示
    –   git log
まずは試してみる・1
●
    とりあえず何か書きはじめる
        $ echo 'hi, git!' > scratch
●
    急にバージョン管理したくなりました
    –   ファイルを管理対象に追加します
        $ git add scratch
    –   コミットしましょう
        $ git commit
    –   コミットログを書いたら保存しましょう(utf-8/LFで保存)
●
    これで一つコミットできました
    –   これを続けていくのが一番簡単な方法です。

More Related Content

What's hot

Githubことはじめ
GithubことはじめGithubことはじめ
Githubことはじめ
tikitikipoo
 

What's hot (20)

やりなおせる Git 入門
やりなおせる Git 入門やりなおせる Git 入門
やりなおせる Git 入門
 
色んな環境用の たった一つの.gitConfig
色んな環境用の たった一つの.gitConfig色んな環境用の たった一つの.gitConfig
色んな環境用の たった一つの.gitConfig
 
Git地図
Git地図Git地図
Git地図
 
Gitで始めるバージョン管理
Gitで始めるバージョン管理Gitで始めるバージョン管理
Gitで始めるバージョン管理
 
GitLabをバックアップしてみた
GitLabをバックアップしてみたGitLabをバックアップしてみた
GitLabをバックアップしてみた
 
git-webtouchmeeting
git-webtouchmeetinggit-webtouchmeeting
git-webtouchmeeting
 
大容量ファイルもGitで管理。 Git LFSの使い方
大容量ファイルもGitで管理。 Git LFSの使い方大容量ファイルもGitで管理。 Git LFSの使い方
大容量ファイルもGitで管理。 Git LFSの使い方
 
実践Go ツールの作成から配布まで
実践Go ツールの作成から配布まで実践Go ツールの作成から配布まで
実践Go ツールの作成から配布まで
 
Git 勉強会
Git 勉強会Git 勉強会
Git 勉強会
 
Git LFSを触ってみた
Git LFSを触ってみたGit LFSを触ってみた
Git LFSを触ってみた
 
デザイナー、フロントエンジニア向けgithub勉強会ワークショップ資料
デザイナー、フロントエンジニア向けgithub勉強会ワークショップ資料デザイナー、フロントエンジニア向けgithub勉強会ワークショップ資料
デザイナー、フロントエンジニア向けgithub勉強会ワークショップ資料
 
Git勉強会
Git勉強会Git勉強会
Git勉強会
 
Github第8章
Github第8章Github第8章
Github第8章
 
Gitのいいところ
GitのいいところGitのいいところ
Gitのいいところ
 
GitHubで「バッジ」を集めよう
GitHubで「バッジ」を集めようGitHubで「バッジ」を集めよう
GitHubで「バッジ」を集めよう
 
Git紹介~入門編~
Git紹介~入門編~Git紹介~入門編~
Git紹介~入門編~
 
Git (実践入門編)
Git (実践入門編)Git (実践入門編)
Git (実践入門編)
 
Githubことはじめ
GithubことはじめGithubことはじめ
Githubことはじめ
 
Archive: Git 入門(2014/1/10 社内勉強会)
Archive: Git 入門(2014/1/10 社内勉強会)Archive: Git 入門(2014/1/10 社内勉強会)
Archive: Git 入門(2014/1/10 社内勉強会)
 
Git リモートへの道
Git リモートへの道Git リモートへの道
Git リモートへの道
 

Viewers also liked

Tugas uas kurikulum
Tugas uas kurikulumTugas uas kurikulum
Tugas uas kurikulum
huzaipah
 
Tugas rancangan media pembelajaran
Tugas rancangan media pembelajaranTugas rancangan media pembelajaran
Tugas rancangan media pembelajaran
huzaipah
 
52. fisika sma
52. fisika sma52. fisika sma
52. fisika sma
huzaipah
 
The SEO Company Brochure
The SEO Company BrochureThe SEO Company Brochure
The SEO Company Brochure
The SEO Company
 
nursing process Evaluation
nursing process Evaluationnursing process Evaluation
nursing process Evaluation
Shaells Joshi
 

Viewers also liked (15)

Leadership
LeadershipLeadership
Leadership
 
Boo s tore slideshare
Boo s tore slideshareBoo s tore slideshare
Boo s tore slideshare
 
12005 dppkad 190 - 193
12005   dppkad 190 - 19312005   dppkad 190 - 193
12005 dppkad 190 - 193
 
Fc
FcFc
Fc
 
Ina crew 的巨亏是如何形成的
Ina crew 的巨亏是如何形成的Ina crew 的巨亏是如何形成的
Ina crew 的巨亏是如何形成的
 
NPS®: Benefit From the Passion of Your Promoters
NPS®: Benefit From the Passion of Your PromotersNPS®: Benefit From the Passion of Your Promoters
NPS®: Benefit From the Passion of Your Promoters
 
Tugas uas kurikulum
Tugas uas kurikulumTugas uas kurikulum
Tugas uas kurikulum
 
Tugas rancangan media pembelajaran
Tugas rancangan media pembelajaranTugas rancangan media pembelajaran
Tugas rancangan media pembelajaran
 
Resume-Vishnu Monn Baskaran_v3
Resume-Vishnu Monn Baskaran_v3Resume-Vishnu Monn Baskaran_v3
Resume-Vishnu Monn Baskaran_v3
 
52. fisika sma
52. fisika sma52. fisika sma
52. fisika sma
 
The SEO Company Brochure
The SEO Company BrochureThe SEO Company Brochure
The SEO Company Brochure
 
Basic human needs, growth and development
Basic human needs, growth and developmentBasic human needs, growth and development
Basic human needs, growth and development
 
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
 
201308281105060.bases curriculares educacion_parvularia (2)
201308281105060.bases curriculares educacion_parvularia (2)201308281105060.bases curriculares educacion_parvularia (2)
201308281105060.bases curriculares educacion_parvularia (2)
 
nursing process Evaluation
nursing process Evaluationnursing process Evaluation
nursing process Evaluation
 

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で保存) ● これで一つコミットできました – これを続けていくのが一番簡単な方法です。