.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。

目次

概要

通常、Public RepositoryとPrivate Repository間ではPull Requestを送信できない。

詳細

手順

裏技的方法として、以下の手順で ≒ の事を実現できる。

  1. Public Repository を GitHub上で folk する。
  2. Private Repository を GitHub上に新設する。
  3. 以下の様な手順でPrivate Repository に Public Repository を mirror する。
    git clone --bare https://github.com/exampleuser/public-repo.git
    cd public-repo.git
    git push --mirror https://github.com/yourname/private-repo.git
    ※ mirror後、cloneしたローカルのPublic Repositoryは削除してしまってOK。

  4. Private Repository をcloneして作業する。
  5. Private Repository の変更をPublic Repositoryに (pull&)push する。
    cd private-repo
    git remote add public https://github.com/exampleuser/public-repo.git
    git pull public master # Creates a merge commit
    git push origin master
  6. Public Repository から folk 元 に GitHub上から Pull Request。

TortoiseGitでは「任意のURL」を使用すれば、Repository間で同期(pull&push)できる。

コンフリクト解消

参考

github.com


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS