English 中文(简体)
是否有办法在共享的法典存放处管理我的个人测试稿?
原标题:Is there a way to have Git manage my personal test scripts in a shared code repository?
  • 时间:2012-01-13 18:46:34
  •  标签:
  • git

在我制定法典时,我通常拥有一股“个人”档案,我不想与其他开发商分享,因为它们是我自己的辅助工作流程所特有的。 这些档案包括个人文件、很少的测试文字、测试数据档案等。 这 t是一个可怕的问题: 我只是把这些档案用在地块上,而别无他择,也无需用我qui的手法。

然而,所有这些都并非完全一致。 例如,如果我打着这个存放处,我的个人测试档案就不是随行的,这些档案也没有存档。 I.e. 随着法典的修改,我的测试档案和文字以及文件需要与守则一起修改。 如果我回到较早版本的法典,那么我的文字和测试档案现在就被打破。 或者,如果我从家里工作,我从我的Gitelene从工作电脑上拿走,这些个人档案没有被带回我的家电脑。

So, what would be really keen is if Git had a notion of tracked and shared files as being different from tracked and private files. When I push to a shared repository, the private files would not be pushed, even though Git is tracking them and versioning them for me. And when I clone a repository, I would have the choice of getting only the shared files, or both the shared and private files.

我只想问一只“SOL,但从来不懂。 吉唐似乎只是everything,因此也许也可以这样做,而我就被搁置了。

一种可能的工作是,为这一困境(例如,“双重-人-人-人-强奸”)提供一个子基点,并告诉我的同事不要与它做什么。 但是,我确实不想去掉我的 d费,特别是如果有更好的办法的话。

最佳回答

我只能认为这样做是好的。

  1. Divide all staff to private and public
  2. Move public stuff to XXX repository
  3. Move private stuff to YYY repository
  4. Create a big super repository ZZZ
  5. Add XXX and YYY to ZZZ repository as submodules

因此,您的存放处载有一些公共空白和私人数据、文字等。 你可以轻松地打上你的ZZZZ存放处。 也可以轻易分享第三十个存放处。 欢乐!

问题回答

另一种做法是使用mine/code>

它让你把个人束缚在一只模仿的目录中,远离it,并且能够支撑。





相关问题
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 ...

热门标签