You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the second case (on Windows), `bzr-fastimport` is automatically installed with the standalone version and the default installation (let all the checkboxes checked).
58
-
So in this case you have nothing to do.
54
+
在 Windows 上,`bzr-fastimport` 插件在 Git 使用脱机安装并保持默认安装选项不变(可选框全部选中)的情况下是自动安装的。在这种情况下,你什么都不用做。
59
55
60
-
At this point, the way to import a Bazaar repository differs according to that you have a single branch or you are working with a repository that has several branches.
56
+
接下来,导入 Bazaar 仓库的方法根据你的仓库是有一个分支还是有多个分支而不同。
61
57
62
-
===== Project with a single branch
58
+
===== 单分支项目
63
59
64
-
Now `cd` in the directory that contains your Bazaar repository and initialize the Git repository:
60
+
`cd` 到包含你的 Bazaar 仓库的路径,然后初始化 Git 仓库:
65
61
66
62
[source,console]
67
63
----
68
64
$ cd /path/to/the/bzr/repository
69
65
$ git init
70
66
----
71
67
72
-
Now, you can simply export your Bazaar repository and convert it into a Git repository using the following command:
68
+
现在你可以使用以下命令轻松地导出你的 Bazaar 仓库并把它转化成 Git 仓库:
73
69
74
70
[source,console]
75
71
----
76
72
$ bzr fast-export --plain . | git fast-import
77
73
----
78
74
79
-
Depending on the size of the project, your Git repository is built in a lapse from a few seconds to a few minutes.
75
+
根据项目的大小,Git 仓库会在几秒钟到几分钟之间构建。
80
76
81
-
===== Case of a project with a main branch and a working branch
77
+
===== 多分支项目
82
78
83
-
You can also import a Bazaar repository that contains branches.
84
-
Let us suppose that you have two branches: one represents the main branch (myProject.trunk), the other one is the working branch (myProject.work).
Whatever the number of branches you had and the import method you used, your staging area is not synchronized with `HEAD`, and with the import of several branches, your working directory is not synchronized either.
122
-
This situation is easily solved by the following command:
===== Ignoring the files that were ignored with .bzrignore
130
-
131
-
Now let's have a look at the files to ignore.
132
-
The first thing to do is to rename `.bzrignore` into `.gitignore`.
133
-
If the `.bzrignore` file contains one or several lines starting with "!!" or "RE:", you'll have to modify it and perhaps create several `.gitignore` files in order to ignore exactly the same files that Bazaar was ignoring.
0 commit comments