GitHubでaws-sdk-phpをフォーク
ちょっと思い立って、aws-sdk-phpをフォークしてみました。
GitHubのドキュメントにそって実施すれば、数ステップの簡単さ!最近の開発系サイトは、どこもドキュメントが分かりやすくて素敵です。
Contribute出来る様、ちょと試行錯誤してみます。
事前準備
事前にGitHubアカウント作成しておいて、プラットフォームに合わせてツールをダウンロードしておきましょう。
プロジェクトに貢献する
- Step 1: 目的のリポジトリを「Fork」する
- 自分がForkしたいリポジトリを表示して「Fork」ボタンをクリックする
- 例えば aws-sdk-php はこちら
- https://github.com/aws/aws-sdk-php
- Step 2: 自分のForkを「Clone」する
git clone https://github.com/username/aws-sdk-php.git
- Step 3: 「remote」を設定
cd aws-sdk-php # Changes the active directory in the prompt to the newly cloned "aws-sdk-php" directory git remote add upstream https://github.com/aws/aws-sdk-php.git # Assigns the original repository to a remote called "upstream" git fetch upstream # Pulls in changes not present in your local repository, without modifying your files
この先、できる事
git push origin master
- upstreamの変更をPullできます
- オリジナルのリポジトリのアップデートを自身のmasterに反映
git fetch upstream # Fetches any new changes from the original repository git merge upstream/master # Merges any changes fetched into your working files