简体   繁体   English

使用git-tfs时,在TFS中存储git commit元数据

[英]Storing git commit metadata in TFS when using git-tfs

Context 上下文

We're a team of developers collaborating using github. 我们是一个使用github进行协作的开发团队。 We need to mirror our release branch on TFS such that we have a tfs changeset for every git commit. 我们需要在T​​FS上镜像我们的发布分支,以便我们为每个git提交都有一个tfs变更集。 It seems the best way to do this is using git-tfs rcheckin . 似乎最好的方法是使用git-tfs rcheckin

In a comment to the answer to my previous git-tfs question , Matt Burke told me that 回答 我之前的git-tfs问题时Matt Burke告诉我

All changesets will be attributed to you... git-tfs connects to TFS with your 
credentials, and there's not an "attribute this to someone else" parameter on 
checkin (at least, not that I know of).

Correct commit -> changeset attribution 正确提交 - >变更集归因

What ways do I have to identify the original commiter of such a tfs changeset attributed to me, if one is using only our tfs mirror? 如果只使用我们的tfs镜像,我有哪些方法可以识别归因于我的这种tfs变更集的原始提交者?

Is there a way to store metadata in TFS, or is there a way to script git-tfs so that it adds this information to the commit message? 有没有办法在TFS中存储元数据,或者有没有办法编写脚本git-tfs,以便将此信息添加到提交消息中?

There is a fix now in the trunk ( https://github.com/git-tfs/git-tfs/pull/336 ) that has been released in the stable version. 现在已经在稳定版本中发布的主干( https://github.com/git-tfs/git-tfs/pull/336 )中有一个修复程序。

You will have to configure and use an author file that match the windows users login to there email address. 您必须配置和使用与Windows用户登录到该电子邮件地址匹配的作者文件。 This file is used to commit in the name of the original commiter. 此文件用于以原始提交者的名义提交。

But there is a right that must be given in tfs permissions to be able to check-in on behalf of someone else. 但是有一项权利必须在tfs权限中给出,以便能够代表其他人办理登机手续。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM