1

I would like to release a small subset of a somewhat large software project I have been working on. I had released the full project as a compressed archive. I now want to release the small subset on GitHub.com.

What is the mechanism within git for packaging a subset of one's code and sharing that independent subset on a git web host? I wrote a script to extract the relevant files outside of the full project, but, needless to say, I do not want to put the files after extraction under git.

Edit replaced "git web host" with "GitHub.com" for more concreteness.

4

1 に答える 1

0

おそらく、サブセットを公開プロジェクトになるサブモジュールに変換する必要があります(「git web host」を適切に解析した場合)。git-subtreeを使用して、既存のリポジトリから抽出できます。次に、おそらく既存のリポジトリで実行して、「メイン」履歴git filter-branchから抽出されたサブセットを消去する必要があります。git-subtree詳細については、この回答を参照してください。

PS 一部のバージョンgit-subtreeは現在 Git の一部であるため (そのcontrib/ディレクトリ IIUC 内) に注意してください。

于 2012-05-29T08:16:08.173 に答える