ページへ戻る
印刷
[GitHub] XoopsX 上のコミットを xoopscube へ Pull request するメモ書き
をテンプレートにして作成 ::
XOOPS マニア
UsersWiki
:nao-pon/blog/2012-07-19 をテンプレートにして作成
開始行:
#navi
RIGHT:&rsslink(../);
#boxdate
* [GitHub] XoopsX 上のコミットを xoopscube へ Pull reques...
RIGHT:&tag(GitHub,XOOPS,XoopsX,XCL,メモ書き);
自分用の XoopsX ローカルリポジトリ上での操作
+ xoopscube リモートリポジトリの追加
git remote add xoopscube https://github.com/xoopscube/le...
これで xoopscube という名前のリモート追跡ブランチができる
+ xoopscube/master を xoopscube_legacy というブランチに紐...
git fetch xoopscube
git checkout -b xoopscube_legacy xoopscube/master
これで、以後は xoopscube_legacy ブランチで git pull で最...
+ xoopscube への pull request 用に作業ブランチ(例えば xc_...
git checkout xoopscube_legacy
git pull
git checkout -b xc_hoge xoopscube_legacy
+ cherry-pick で該当のコミットを古い順に一つずつ適用(コン...
git cherry-pick <commit hash>
+ 自分のリポジトリへ push
git push origin xc_hoge
+ あとは github 上で、xoopscube/master に向けて pull requ...
1と2は一度行なえば次からは3以降でOK。
RIGHT:&font(90%){&page_comments;};
#navi
終了行:
#navi
RIGHT:&rsslink(../);
#boxdate
* [GitHub] XoopsX 上のコミットを xoopscube へ Pull reques...
RIGHT:&tag(GitHub,XOOPS,XoopsX,XCL,メモ書き);
自分用の XoopsX ローカルリポジトリ上での操作
+ xoopscube リモートリポジトリの追加
git remote add xoopscube https://github.com/xoopscube/le...
これで xoopscube という名前のリモート追跡ブランチができる
+ xoopscube/master を xoopscube_legacy というブランチに紐...
git fetch xoopscube
git checkout -b xoopscube_legacy xoopscube/master
これで、以後は xoopscube_legacy ブランチで git pull で最...
+ xoopscube への pull request 用に作業ブランチ(例えば xc_...
git checkout xoopscube_legacy
git pull
git checkout -b xc_hoge xoopscube_legacy
+ cherry-pick で該当のコミットを古い順に一つずつ適用(コン...
git cherry-pick <commit hash>
+ 自分のリポジトリへ push
git push origin xc_hoge
+ あとは github 上で、xoopscube/master に向けて pull requ...
1と2は一度行なえば次からは3以降でOK。
RIGHT:&font(90%){&page_comments;};
#navi
ページ名: