File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
book/09-git-and-other-scms/sections Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
==== TFS
3
3
4
4
(((TFS)))(((Importing, from TFS)))
5
- 如果你的团队正在将他们的源代码管理从 TFVC 转换为 Git,会需要能得到的最高保真度的转换 。
6
- 这意味着,在我们之前交互章节介绍的 git-tfs 与 git-tf 中 ,我们在本部分只能介绍 git-tfs,因为 git-tfs 支持分支,使用 git-tf 代价太大。
5
+ 如果你的团队正在将他们的源代码管理从 TFVC 转换为 Git,你们会想要最高程度的无损转换 。
6
+ 这意味着,虽然我们在之前的交互章节介绍了 git-tfs 与 git-tf 两种工具 ,我们在本部分只能介绍 git-tfs,因为 git-tfs 支持分支,而使用 git-tf 代价太大。
7
7
8
8
[NOTE]
9
9
====
47
47
PS> git tfs clone --with-branches --authors=AUTHORS https://username.visualstudio.com/DefaultCollection $/project/Trunk project_git
48
48
----
49
49
50
- 接下来想要从提交信息底部清理 `git-tfs-id` 区块。
50
+ 接下来要从提交信息底部清理 `git-tfs-id` 区块。
51
51
下面的命令会处理:
52
52
53
53
[source,powershell]
@@ -57,4 +57,4 @@ PS> git filter-branch -f --msg-filter 'sed "s/^git-tfs-id:.*$//g"' -- --all
57
57
58
58
那会使用 Git 终端环境中的 `sed` 命令来将所有以 ``git-tfs-id:'' 开头的行替换为 Git 会忽略的空白。
59
59
60
- 一旦那些全部完成 ,你就准备好增加一个新的远程仓库,推送所有你的分支上去 ,然后你的团队就可以开始用 Git 工作了。
60
+ 那些全部完成后 ,你就准备好增加一个新的远程仓库,推送你所有的分支上去 ,然后你的团队就可以开始用 Git 工作了。
You can’t perform that action at this time.
0 commit comments