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
If it is not available, you can download it at address https://pypi.python.org/pypi/fastimport/.
55
+
اگر در دسترس نیست، میتوانید آن را از آدرس https://pypi.python.org/pypi/fastimport/.
56
56
57
-
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.
57
+
در حالت دوم (در ویندوز)، `bzr-fastimport` به طور خودکار با نسخه مستقل و نصب پیشفرض (اجازه دهید
58
+
تمام جعبههای انتخاب شده باقی بمانند) نصب میشود.
59
+
بنابراین در این حالت شما هیچ کاری برای انجام ندارید.
59
60
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.
61
+
در این مرحله، روش وارد کردن یک مخزن بازار بسته به اینکه آیا شما یک شاخه واحد دارید یا با مخزنی کار میکنید که
62
+
چندین شاخه دارد، متفاوت است.
61
63
62
-
===== Project with a single branch
64
+
===== پروژه با یک شاخه واحد
63
65
64
-
Now `cd` in the directory that contains your Bazaar repository and initialize the Git repository:
66
+
اکنون `cd` در دایرکتوری که مخزن بازار شما در آن قرار دارد و مخزن گیت را راهاندازی کنید:
65
67
66
68
[source,console]
67
69
----
68
70
$ cd /path/to/the/bzr/repository
69
71
$ git init
70
72
----
71
73
72
-
Now, you can simply export your Bazaar repository and convert it into a Git repository using the following command:
74
+
اکنون، میتوانید به سادگی مخزن بازار خود را صادر کرده و آن را به یک مخزن گیت تبدیل کنید با استفاده از دستور
75
+
زیر:
73
76
74
77
[source,console]
75
78
----
76
79
$ bzr fast-export --plain . | git fast-import
77
80
----
78
81
79
-
Depending on the size of the project, your Git repository is built in a lapse from a few seconds to a few minutes.
82
+
بسته به اندازه پروژه، مخزن گیت شما در یک بازه زمانی از چند ثانیه تا چند دقیقه ساخته میشود.
80
83
81
-
===== Case of a project with a main branch and a working branch
84
+
===== موردی از پروژه با یک شاخه اصلی و یک شاخه
85
+
کاری
82
86
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).
87
+
شما همچنین میتوانید یک مخزن بازار که شامل شاخهها است را وارد کنید.
88
+
فرض کنید که شما دو شاخه دارید: یکی نمایانگر شاخه اصلی (myProject.trunk) و دیگری شاخه کاری (myProject.work)
Now `git branch` shows you the `master` branch as well as the `work` branch.
117
-
Check the logs to make sure they're complete and get rid of the `marks.bzr` and `marks.git` files.
121
+
اکنون `git branch` به شما شاخه `master` و همچنین شاخه `work` را نشان میدهد.
122
+
لاگها را بررسی کنید تا مطمئن شوید که کامل هستند و فایلهای `marks.bzr` و `marks.git` را
123
+
حذف کنید.
118
124
119
-
===== Synchronizing the staging area
125
+
===== همگامسازی ناحیه موقت
120
126
121
-
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:
127
+
هر تعداد شاخهای که داشتید و روش وارداتی که استفاده کردید، ناحیه موقت شما با `HEAD` همگام نیست و
128
+
با واردات چندین شاخه، دایرکتوری کاری شما نیز همگام نیست.
129
+
این وضعیت به راحتی با دستور زیر حل میشود:
123
130
124
131
[source,console]
125
132
----
126
133
$ git reset --hard HEAD
127
134
----
128
135
129
-
===== Ignoring the files that were ignored with .bzrignore
136
+
===== نادیده گرفتن فایلهایی که با .bzrignore نادیده گرفته
137
+
شدهاند
130
138
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.
139
+
اکنون بیایید نگاهی به فایلهایی که باید نادیده گرفته شوند بیندازیم.
140
+
اولین کار این است که `.bzrignore` را به `.gitignore` تغییر نام دهید.
141
+
اگر فایل `.bzrignore` شامل یک یا چند خط باشد که با "!!" یا "RE:" شروع میشود، باید آن را اصلاح کنید
142
+
و شاید چندین `.gitignore` ایجاد کنید تا دقیقاً همان فایلهایی را که بازار نادیده میگرفت، نادیده
143
+
بگیرید.
134
144
135
-
Finally, you will have to create a commit that contains this modification for the migration:
145
+
در نهایت، شما باید یک کامیت ایجاد کنید که این اصلاح را برای مهاجرت شامل شود:
136
146
137
147
[source,console]
138
148
----
139
149
$ git mv .bzrignore .gitignore
140
-
$ # modify .gitignore if needed
141
-
$ git commit -am 'Migration from Bazaar to Git'
150
+
$ # در صورت نیاز .gitignore را اصلاح کنید
151
+
$ git commit -am 'مهاجرت از بازار به گیت'
142
152
----
143
153
144
-
===== Sending your repository to the server
154
+
===== ارسال مخزن شما به سرور
145
155
146
-
Here we are!
147
-
Now you can push the repository onto its new home server:
156
+
اینجا هستیم!
157
+
اکنون میتوانید مخزن را به سرور جدید خود فشار دهید:
0 commit comments