logo
/
フォークから作成されたPRへコミットを追加する
github コードレビュー
Adding Commits to Someone Else's Pull Request
Pasted image 20230106215620.png

手順

フォーク元のリポジトリをclone

※していない場合
git clone [email protected]:own/repo.git

remoteを追加

git remote add other [email protected]:other/repo.git

branchをfetch

git fetch other

checkout

git checkout -b other-main other/main

Commit and push

git commit -am "Fix how you spelt towel"
git push other HEAD:main
“Allow edits from maintainers.”にチェックされていない場合はpushできない