English 中文(简体)
包装 Git 网络主机的代码子集
原标题:Packaging a code subset for a git web host
  • 时间:2012-05-28 12:50:23
  •  标签:
  • git
  • github

我想发布一个我一直在研究的大型软件项目的一个小子集。我已经将整个项目作为压缩档案发布。我现在要发布关于GitHub.com的小子集。

将一个 S 代码的子集包装在 Git 网络主机上并共享该独立子集的 Git 内机制是什么? 我写了一个脚本, 提取整个工程之外的相关文件, 但无需指出, 我不想在提取后将文件置于 Git 之下 。

以“ GitHub. com ” 取代“ gitt 网络主机”, 以便更具体。

问题回答

您也许应该将您的子集转换为 < a href=> http:// git- scm. com/ book/ en/ Git- Tools- Submodules" rel= “ nofoln noreferr” >submodule , 这将是一个已公布的工程( 如果我正确分析“ git web hostorp”) 。 您可以使用 < a href=" https:// github.com/ apenwarr/ git-subtretre" rel= " nofolrer" > > > git-subtretre 。 那么您可能需要在您现有的 repo 上运行 < code> git floeral- branch , 才能用 < codead> subgit-subretre 来清除从“ main” 历史中提取的子集; 见 < a href=" < a href= "https://stackfrrent.com/ a/35.9759/7999" > > > > 。

P.S. Note that since some version git-subtree is now a part of Git (in its contrib/ directory, IIUC).





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签