「[[.NET 開発基盤部会 Wiki>http://dotnetdevelopmentinfrastructure.osscons.jp]]」は、「[[Open棟梁Project>https://github.com/OpenTouryoProject/]]」,「[[OSSコンソーシアム .NET開発基盤部会>https://www.osscons.jp/dotNetDevelopmentInfrastructure/]]」によって運営されています。 -[[戻る>Github - Pull Request関連]] *目次 [#r3406dcc] #contents *概要 [#u5e2ec44] 通常、Public RepositoryとPrivate Repository間ではPull Requestを送信できない。 -通常、Public RepositoryとPrivate Repository間ではPull Requestを送信できない。 -なので、Public Repositoryの作業を暫くPrivate Repositoryで行いたい場合、どうするか?的な。 *詳細 [#lf449a08] **手順 [#f3a659d0] 裏技的方法として、以下の手順で ≒ の事を実現できる。 +Public Repository を GitHub上で folk する。 +Private Repository を GitHub上に新設する。 +以下の様な手順で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。 ~ ~ +Private Repository をcloneして作業する。 +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 +Public Repository から folk 元 に GitHub上から Pull Request。 ※ TortoiseGitでは「任意のURL」を使用すれば、Repository間で同期(pull&push)できる。 **コンフリクト解消 [#o1f3c18f] -[[最近は、GitHub上のUIで解消可能。>Pull Requestのコンフリクトの解消#pe6a913a]] -細かな作業が必要な場合、クローンしたローカルの~ Public Repository上で[[コンフリクト解消作業>Pull Requestのコンフリクトの解消]]をしてもイイ。 -何れにせよ、上記変更は、Private Repository に push する必要がある。 *参考 [#qcd6f2bd] -git - GitHub pull request from private to public repo possible? - Stack Overflow~ https://stackoverflow.com/questions/8834755/github-pull-request-from-private-to-public-repo-possible -GitHub: How to make a fork of public repository private?~ https://medium.com/@bilalbayasut/github-how-to-make-a-fork-of-public-repository-private-6ee8cacaf9d3 -朗報、GitHub無料ユーザーも無制限に~ プライベートリポジトリを使えるようになる | TechCrunch Japan~ https://jp.techcrunch.com/2019/01/08/2019-01-07-github-free-users-now-get-unlimited-private-repositories/ **github.com [#y816cf3c] -https://github.com/NetDevInfraWGinOSSConsortium/test_Public --https://github.com/daisukenishino2/test_Public --https://github.com/daisukenishino2/test_Private (Private)