github で pull requestを送るときの超速方法メモ
今回以下のrepositoryにpull requestを送った。 いつもやり方を忘れるので、今度は忘れないうちにメモしておく
fork
自分のアカウントに対象リポジトリをforkする
remote add
fork元が更新されたときにその更新を取得できるようにremote add しておく
git remote add git remote add upstream https://github.com/joke2k/faker.git
今後は以下で更新を取得できる
git pull upstream master
ブランチを作成し、更新
以下で対象ブランチを作成し、ソースを更新する
git checkout -b feature/add_japanese_link_to_readme <- branchの作成と作成したbranchにswitch git branch <- 現在いるbranchの確認
自分のアカウントにpush
git push origin feature/add_japanese_link_to_readme
pull request
githubにいくとpull requestのボタンがあるので、 それをクリックしてコメントしてpull requestできる