Git 和 Trac(或类似的)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/623130/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 06:14:56  来源:igfitidea点击:

Git and Trac (or similar)

gitversion-controlgithubbug-tracking

提问by Paul Osborne

In the past I have really enjoyed using Tracwith subversion repositories hosted on some of my own servers. The integrated ticketing and online code browsing is very convenient.

过去,我非常喜欢将Trac与托管在我自己的一些服务器上的 subversion 存储库一起使用。集成的票务和在线代码浏览非常方便。

I have used githubfor some of my public projects but I don't have the money to shell out for an extra service, espcially when I am already paying for remote VPS hosting.

我已经将github用于我的一些公共项目,但我没有钱支付额外的服务,尤其是当我已经为远程 VPS 托管付费时。

Does anyone know of or have any experience setting up something like Trac with git version control? Specifically, I can already push to a remote server but I would like some web interface that allows me (and people working with me) to see that commits and current state of the codebase online without making the project public. I am aware of GitPluginbut have not been able to get it up and running successfully. Any other suggestions?

有没有人知道或有任何使用 git 版本控制设置类似 Trac 的经验?具体来说,我已经可以推送到远程服务器,但我想要一些 Web 界面,允许我(以及与我一起工作的人)在线查看代码库的提交和当前状态,而无需公开项目。我知道GitPlugin但未能成功启动和运行。还有其他建议吗?

Integrated ticketing (and wiki) is desired but not an absolute necessity.

需要集成票务(和 wiki),但不是绝对必要的。

Edit:

编辑:

After playing around with GitPlugin and Trac a bit more I have been able to get it up and running. The main problem was that I needed to explicitly enable the plugin for the trac environment by doing something like this in trac.ini:

在多玩了 GitPlugin 和 Trac 之后,我已经能够启动并运行它了。主要问题是我需要通过在 trac.ini 中执行以下操作来显式启用 trac 环境的插件:

[components]
# for version 0.10
gitplugin.* = enabled
# for version 0.11
tracext.git.* = enabled 

I may also try out Redmineand CGitas this seem like other pieces of software that do what I am looking for. Any other suggestions are welcome.

我也可以尝试使用RedmineCGit,因为这看起来就像其他软件一样可以满足我的需求。欢迎任何其他建议。

采纳答案by Michael Larocque

You should take a look at Redmine (http://www.redmine.org/). It has all of the features you mention and more. You can host it on your own vps (I do).

您应该看看 Redmine ( http://www.redmine.org/)。它具有您提到的所有功能以及更多功能。您可以在自己的 vps 上托管它(我愿意)。

回答by Pat Notz

We use Trac and both of the two Git plugins -- the GitPlugin as well as the GitWebPlugin. See, we actually have three repositories (long story) and Trac is still limited to a single-repository. So, I wrote my own plugin that defines wiki syntax (Macros actually) for referencing a repository, branch or commit and these link to the GitWebPlugin links. I was also able to write some git hook scripts so that we can reference, close or modify Trac tickets in commit messages -- it's a modified version of the SVN commit hook that comes with Trac.

我们使用 Trac 和两个 Git 插件——GitPlugin 和 GitWebPlugin。看,我们实际上有三个存储库(长话短说),而 Trac 仍然仅限于单个存储库。因此,我编写了自己的插件,该插件定义了 wiki 语法(实际上是宏),用于引用存储库、分支或提交以及这些指向 GitWebPlugin 链接的链接。我还能够编写一些 git 钩子脚本,以便我们可以在提交消息中引用、关闭或修改 Trac 票证——它是 Trac 附带的 SVN 提交钩子的修改版本。

The main problem with the GitPlugin is that it's slow due to the lack of "libgit" library. It's not bad for small-medium sized projects but large projects are a pain. If you really need a speedy web interface you should really check out Cgit. Cgit makes it's own libgit so it's tied to a particular version of Git.

GitPlugin 的主要问题是由于缺少“libgit”库而速度很慢。对于中小型项目来说还不错,但大型项目就很痛苦。如果你真的需要一个快速的网络界面,你真的应该看看Cgit。Cgit 使其成为自己的 libgit,因此它与特定版本的 Git 相关联。

The truth, however, is that web based views of Git are not that useful except when you want to send someone a link (like in email or IRC). Because with Git you have the full repository in every clone you're much better off using tools like gitkor even plain ol' git log. The queries and grepping capabilities are really amazing and (obviously) fast. I find that Cgit and GitWeb are really only useful for sending links to commits and that's pretty rare.

然而,事实是,基于 Web 的 Git 视图并没有那么有用,除非您想向某人发送链接(例如在电子邮件或 IRC 中)。因为有了 Git,你在每个克隆中都有完整的存储库,所以最好使用像gitkol' 之类的工具,甚至是普通的 ol' git log。查询和 grepping 功能真的很棒而且(显然)很快。我发现 Cgit 和 GitWeb 真的只对发送提交链接有用,而且这种情况很少见。

回答by olleolleolle

Tip: A completely different way to get Trac ticketing functionality is ditz.

提示:获得 Trac 票务功能的一种完全不同的方式是ditz

"Ditz is a simple, light-weight distributed issue tracker designed to work with distributed version control systems like git, darcs, Mercurial, and Bazaar."

“Ditz 是一个简单、轻量级的分布式问题跟踪器,旨在与 git、darcs、Mercurial 和 Bazaar 等分布式版本控制系统配合使用。”

Your tickets reside with your code. It's not possible to lose one and have the other; which is a good thing. The Trac-like website is generated by the ditzcommand-line tool.

您的门票与您的代码一起存在。失去一个而拥有另一个是不可能的;这是一件好事。类似 Trac 的网站是由ditz命令行工具生成的。

I enjoy it.

我很喜欢。

回答by strager

Assemblaprovides a wiki, tickets, and other things for free, and allows Github integration. If you don't want to use Github, you can use plain Git with Assembla(with all the goodies you get with any other project).

Assembla 免费提供 wiki、门票和其他东西,并允许Github 集成。如果您不想使用 Github,您可以使用带有 Assembla 的普通Git(以及您在任何其他项目中获得的所有好处)。

Pricing is cheap, too ("$2 per team member per month").

定价也很便宜(“每个团队成员每月 2 美元”)。

回答by Will Robertson

Since this question was asked GitHub now has integrated issue tracking. Somewhat lightweight, but for me that's a bonus.

由于这个问题被问到 GitHub 现在已经集成了问题跟踪。有点轻巧,但对我来说这是一个奖励。

回答by Khaled Talaat

we are using GitLab, it's an open source GitHub clone. it has

我们正在使用GitLab,它是一个开源的 GitHub 克隆。它有

  1. online code browsing (same as GitHub sliding tree).
  2. Issues Tracking.
  3. Wikis.
  4. Also you can manage the project privileges through it.
  1. 在线代码浏览(同GitHub滑动树)。
  2. 问题跟踪。
  3. 维基。
  4. 您也可以通过它管理项目权限。

回答by qu1j0t3

For completeness: http://gitorious.org/

为了完整性:http: //gitorious.org/

回答by sak

http://mtrack.wezfurlong.org/simil Trac with Git support

http://mtrack.wezfurlong.org/simil Trac 支持 Git

回答by Sophie Alpert

Gitwebcan be nice, but it doesn't have integrated ticketing or a wiki or anything like that.

Gitweb可以很好,但它没有集成的票务或 wiki 或类似的东西。

回答by user395485