Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bouzuya/825e7c07097875b97a3e to your computer and use it in GitHub Desktop.
Save bouzuya/825e7c07097875b97a3e to your computer and use it in GitHub Desktop.
週ぶり (shuburi) の shuburi.org (shuburi/shuburi.github.io) の改良フロー

問題

週ぶり (shuburi) の公式サイトである shuburi.org に Pull Request を投げる(改善要求をする)ための手順が分かりづらい。

解決策

以下にその手順を示す。

前提条件

  • GitHub にサインアップされている
  • git がインストールされている
  • hub がインストールされている

手順

  1. shuburi.org を眺めていて、issue を発見!
  2. git clone する git clone https://github.com/shuburi/shuburi.github.io
  3. hub fork する hub fork (これにより git remote に $github_user が追加される。$github_user はたとえば bouzuya )
  4. hub issue して既存の issue との重複を確認する
  5. hub issue create して新規の issue を登録する (必要ならこのあとその issue で議論)
  6. 追加したい機能のための新しいブランチをつくる git checkout -b new-your-feature
  7. そのブランチに変更を加える git commit -am 'Add some feature'
  8. そのブランチの変更を fork 済みのあたなのリポジトリにプッシュする git push $github_user new-your-feature
  9. hub pull-request で新しいプルリクエストをつくる (1行目が PR のタイトル。2行目は空行。3行目がPRの説明文。説明文に issue no を #3 のように含めると良い。)
  10. @bouzuya などのレビューを受ける
  11. マージされる
  12. 問☆題☆解☆決

メモ

$ pwd
/home/bouzuya/.ghq/github.com/shuburi/shuburi.github.io
$ git remote -v
bouzuya git@github.com:bouzuya/shuburi.github.io.git (fetch)
bouzuya git@github.com:bouzuya/shuburi.github.io.git (push)
origin  git@github.com:shuburi/shuburi.github.io (fetch)
origin  git@github.com:shuburi/shuburi.github.io (push)

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment