结合 git 和 monotone
我需要使用单调存储库。然而,我习惯了 git 并寻找将我的更改推向单调的方法(例如 git-svn )。根据 monotone doc 我可以将 monotone repo 导入到 git 中。但是你知道有什么好方法可以让我的更改从 git 恢复到单调吗?
I need to work with an monotone repository. However I'm used to git and looking for way to push my changes into monotone (like git-svn
). According to monotone doc I can import the monotone repo into git. But do you know some good way to push my changes from git back to monotone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我采取的第一种方法是将 git 和 monotone 混合起来。 Monotone 在目录
_MTN
中维护其内部信息。首先我检查了原始的单调存储库。之后,我在新目录中运行 git init 并导入所有文件。所以我有一个目录位于 monotone 和 git 下。在 git 中,我维护一个分支,它是一个拉分支。这意味着仅导入单调存储库中的原始更改。此外,我在 git 中还有其他一些分支进行更改。一般来说,这是一个更脏的解决方案。最近我遇到了tailor。这正是我想要的。从 Debian 中的描述:
The first way I took was to mixing up git and monotone. Monotone maintains its internal information in directory
_MTN
. First I checked out the original monotone repository. After that I ran agit init
in the new directory and imported all files. So I had one directory which is under monotone and git. In git I maintain one branch which is a pulling branch. It means only original changes from the monotone repository are imported. Furthermore there are a few other branches in git where I develop changes. In general this is a more dirty solution.Lately I came across tailor. This does exactly what I wanted. From the description in Debian: