bitbucket pull request 練習帳

18
Pull Request練習帳

Upload: hiramatsu-ryosuke

Post on 15-Jan-2015

2.059 views

Category:

Documents


2 download

DESCRIPTION

Pull Requestの流れについて、 Bitbucketを使って説明してみました。

TRANSCRIPT

Page 1: Bitbucket Pull Request 練習帳

Pull Request練習帳

Page 2: Bitbucket Pull Request 練習帳

はじめに概念図はこんな感じ。

メインリポジトリ

自分リポジトリ

自分リポジトリ

サ〡バ(bitbucket)

ロ〡カル(自分のPC)

fork

Pull RequestClonePush

Page 3: Bitbucket Pull Request 練習帳

はじめに概念図はこんな感じ。

メインリポジトリ

自分リポジトリ

自分リポジトリ

サ〡バ(bitbucket)

ロ〡カル(自分のPC)

fork

Pull RequestClonePush

Page 4: Bitbucket Pull Request 練習帳

はじめに概念図はこんな感じ。

メインリポジトリ

自分リポジトリ

自分リポジトリ

サ〡バ(bitbucket)

ロ〡カル(自分のPC)

fork

Pull RequestClonePush ②

Page 5: Bitbucket Pull Request 練習帳

はじめに概念図はこんな感じ。

メインリポジトリ

自分リポジトリ

自分リポジトリ

サ〡バ(bitbucket)

ロ〡カル(自分のPC)

fork

Pull RequestClonePush③

Page 6: Bitbucket Pull Request 練習帳

はじめに概念図はこんな感じ。

メインリポジトリ

自分リポジトリ

自分リポジトリ

サ〡バ(bitbucket)

ロ〡カル(自分のPC)

fork

Pull RequestClonePush

Goal !!

Page 7: Bitbucket Pull Request 練習帳

1. bitbucketにログイン

https://bitbucket.org/

Page 8: Bitbucket Pull Request 練習帳

2. 対象リポジトリをFork (1/2)

Page 9: Bitbucket Pull Request 練習帳

3. 対象リポジトリをFork (2/2)

Page 10: Bitbucket Pull Request 練習帳

Forkとは

誰かのリポジトリ

自分のリポジトリ

fork!

Page 11: Bitbucket Pull Request 練習帳

4. ForkしたのをClone(1/3)

Page 12: Bitbucket Pull Request 練習帳

4. ForkしたのをClone(2/3)

[Clone]ボタンを押すと、Cloneのためのパスが表示される。

Page 13: Bitbucket Pull Request 練習帳

5. ForkしたのをClone(3/3)

$ git clone [リポジトリのパス](パスワ〡ド入力)

$ cd asoboo.document/中にあるファイルSample.txtとかを適当に編集

タ〡ミナルを開いて...

Page 14: Bitbucket Pull Request 練習帳

Cloneとは

自分のリポジトリ(サ〡バ)

自分のリポジトリ(ロ〡カル)

Clone!

Page 15: Bitbucket Pull Request 練習帳

6. 自分のリポジトリにpushする

$ git add .$ git commit -m “てすと”

$ git push

変更をコミット

変更をプッシュ

Page 16: Bitbucket Pull Request 練習帳

7. いよいよPull Request! (1/2)

Page 17: Bitbucket Pull Request 練習帳

7. いよいよPull Request! (2/2)

Page 18: Bitbucket Pull Request 練習帳

おわりお疲れ様でした。