Skip to content

Commit 3757e75

Browse files
committed
Update tagging.asc
1 parent 95550ee commit 3757e75

File tree

1 file changed

+49
-46
lines changed

1 file changed

+49
-46
lines changed

book/02-git-basics/sections/tagging.asc

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[[_git_tagging]]
2-
=== Tagging
2+
=== برجسب گذاری
33

44
(((tags)))
5-
Like most VCSs, Git has the ability to tag specific points in history as being important.
6-
Typically people use this functionality to mark release points (v1.0, and so on).
7-
In this section, you'll learn how to list the available tags, how to create new tags, and what the different types of tags are.
5+
همچون دیگر سامانه های کنترل نسخه، گیت هم می تواند یک نقطه ی خاص از تاریخچه ی پروژه را به عنواه نقطه ی مهم و با اهمیت برچسب گذاری کند.
6+
معمولا افراد از این قابلیت برای نشانه گذاری نسخه های قابل ارائه یا همان release کردن پروژه بهره می برند.( نسخه v1.0، و به همین ترتیب).
7+
در این بخش یاد فهرست گرفتن از برچسب های موجود، شیوه ساخت برچسب جدید و این که گونه های متفاوت برچسب ها هر کدام چه هستند را یاد خواهید گرفت.
88

9-
==== Listing Your Tags
9+
==== فهرست برچسب های موجود
1010

11-
Listing the available tags in Git is straightforward.
12-
Just type `git tag` (with optional `-l` or `--list`):(((git commands, tag)))
11+
فهرست گیری از برچسب هیا موجود در گیت بسیار ساده است. تنها نیاز است که دستور `git tag` (با پارامتر دلخواه `-l` و یا `--list`) را وارد نمایید:(((git commands, tag)))
1312

1413
[source,console]
1514
----
@@ -18,11 +17,11 @@ v0.1
1817
v1.3
1918
----
2019

21-
This command lists the tags in alphabetical order; the order in which they appear has no real importance.
20+
این دستور، برچسب های موجود را به ترتیب حرف الفبا نشان می دهد; درواقع ترتیب نمایش آنها هیچ اهمیت ندارد.
2221

23-
You can also search for tags that match a particular pattern.
24-
The Git source repo, for instance, contains more than 500 tags.
25-
If you're only interested in looking at the 1.8.5 series, you can run this:
22+
همچنین می توان برچسب ها را جست و جو کنید و از قواعد الگوها نیز بهره مند شود.
23+
برای نمونه مخزن اصلی گیت، بیش از 500 برچسب دارد.
24+
مثلا اگر میخواید تنها به دنبال برجسب های سری 1.8.5 بگردید، می توانید دستور زیر را اجرا نمایید.
2625

2726
[source,console]
2827
----
@@ -47,22 +46,23 @@ If you want just the entire list of tags, running the command `git tag` implicit
4746
If, however, you're supplying a wildcard pattern to match tag names, the use of `-l` or `--list` is mandatory.
4847
====
4948

50-
==== Creating Tags
49+
==== ساخت برچسب ها
5150

52-
Git supports two types of tags: _lightweight_ and _annotated_.
51+
گیت دو گونه برچسب دارد: _lightweight_ یا __سبک__ و _annotated_ یا __مفصل__.
5352

54-
A lightweight tag is very much like a branch that doesn't change -- it's just a pointer to a specific commit.
53+
یگ برچسب lightweight بسیار شبیه یک شاخه ی بدون تغییر است. -- فقط اشاره گری به یک ثبت ویژ] و مشخص است.
5554

56-
Annotated tags, however, are stored as full objects in the Git database.
57-
They're checksummed; contain the tagger name, email, and date; have a tagging message; and can be signed and verified with GNU Privacy Guard (GPG).
58-
It's generally recommended that you create annotated tags so you can have all this information; but if you want a temporary tag or for some reason don't want to keep the other information, lightweight tags are available too.
55+
برچسب های Annotated , however, به عنوان مجموعه ای از اشیاء کامل در پایگاه داده گیت ذخیره می شوند.
56+
این برچسب ها کنترل checksum می شوند; شامل نام کاربر، ایمیل و تاریخ برجسب گذاری هستند; پیام مربوط به برچسب را دارند; و می توان آنها را با GPG (GNU Privacy Guard) علامت گذاری و تایید نمود.
57+
58+
بیشتر پیشنهاد می شود که برچسب های annotated ایجاد کنید تا به همه این داده ها دسترسی داشته باشد; اما اگر تنها یک برچسب موفت و گذرا نیاز دارید و یا به هر روی نباید داده ها ذخیره شوند می توانید از برچسب های lightweight بهره بگیرید.
5959

6060
[[_annotated_tags]]
61-
==== Annotated Tags
61+
==== برچسبهای Annotated
6262

6363
(((tags, annotated)))
64-
Creating an annotated tag in Git is simple.
65-
The easiest way is to specify `-a` when you run the `tag` command:(((git commands, tag)))
64+
ساخت یک برچسب Annotated در گیت بسیار ساده است.
65+
ساده ترین راه افزدون `-a` هنگام اجرای دستور `tag` می باشد:(((git commands, tag)))
6666

6767
[source,console]
6868
----
@@ -73,10 +73,10 @@ v1.3
7373
v1.4
7474
----
7575

76-
The `-m` specifies a tagging message, which is stored with the tag.
77-
If you don't specify a message for an annotated tag, Git launches your editor so you can type it in.
76+
`-m` مشخص گننده پیام برچسب است، که با برچسب ذخیره خواهد شد.
77+
اگر پیامی برای یک برچسب annotated مشخص نکنید گیت ویرایش پیش فرض را اجرا کرده و شما می توانید آنجا نوشتن را بیاغازید.
7878

79-
You can see the tag data along with the commit that was tagged by using the `git show` command:
79+
داده های برچسب را میتوانید در همان ثبت برچسب گذاری شده با دستور `git show` ببینید.
8080

8181
[source,console]
8282
----
@@ -94,14 +94,15 @@ Date: Mon Mar 17 21:52:11 2008 -0700
9494
changed the version number
9595
----
9696

97-
That shows the tagger information, the date the commit was tagged, and the annotation message before showing the commit information.
97+
این دستور داده های کاربر برچسب گذار، تاریخ برچسب
98+
گذاری و پیام مربوط به برچسب را پیش ا ز داده های ثبت مربوطه نشان می دهد.
9899

99-
==== Lightweight Tags
100+
==== برچسب های Lightweight
100101

101102
(((tags, lightweight)))
102-
Another way to tag commits is with a lightweight tag.
103-
This is basically the commit checksum stored in a file -- no other information is kept.
104-
To create a lightweight tag, don't supply any of the `-a`, `-s`, or `-m` options, just provide a tag name:
103+
راه دیگری برای برچسب گذاری ثبت ها برچسب lightweight است.
104+
این برچسب تنها checksum مربوط به ثبت است که در یک فایل ذخیره می شود -- اطلاعات دیگری نگه داشته نمیشود.
105+
برای ساخت یک برچشب lightweight، هیچکدام از گزینه های `-a`، `-s`، یا `-m` را بکار نگیرید، تنها نام برچسب را وارد نمایید.
105106

106107
[source,console]
107108
----
@@ -114,8 +115,8 @@ v1.4-lw
114115
v1.5
115116
----
116117

117-
This time, if you run `git show` on the tag, you don't see the extra tag information.(((git commands, show)))
118-
The command just shows the commit:
118+
اکنو اگر `git show` را بر روی یک برچسب اجرا کنید، داده های بیشتری از برچسب را نخواهید دید.(((git commands, show)))
119+
این دستور تنها ثبت را نشان خواهد:
119120

120121
[source,console]
121122
----
@@ -127,10 +128,10 @@ Date: Mon Mar 17 21:52:11 2008 -0700
127128
changed the version number
128129
----
129130

130-
==== Tagging Later
131+
==== برچسب گذاری با تاخیر
131132

132-
You can also tag commits after you've moved past them.
133-
Suppose your commit history looks like this:
133+
همچینین می توانید بعد از چند ثبت،ثبت های پیشین را برچسب گذاری کتید.
134+
فرض کنید تاریخچه ی برچسب های شما شبیه این باشد:
134135

135136
[source,console]
136137
----
@@ -147,16 +148,17 @@ a6b4c97498bd301d84096da251c98a07c7723e65 beginning write support
147148
8a5cbc430f1a9c3d00faaeffd07798508422908a updated readme
148149
----
149150

151+
اینک فرض کنید که در ثبت ``updated rakefile`` فراموش کرده اید پروژ] را با v1.2 برچسب گذاری نمایید.
150152
Now, suppose you forgot to tag the project at v1.2, which was at the ``updated rakefile'' commit.
151-
You can add it after the fact.
152-
To tag that commit, you specify the commit checksum (or part of it) at the end of the command:
153+
پس از ثبت می توانید این کار را انجام دهید.
154+
برای برچسب گذاری ثبت های پیشین، checksum مربوط به ثبت را (یا بخشی از آن را ) در پایان دستور وارد نمایید.
153155

154156
[source,console]
155157
----
156158
$ git tag -a v1.2 9fceb02
157159
----
158160

159-
You can see that you've tagged the commit:(((git commands, tag)))
161+
می بینید که ثبت مورد نظر برچسب گذاری شده است:(((git commands, tag)))
160162

161163
[source,console]
162164
----
@@ -183,11 +185,11 @@ Date: Sun Apr 27 20:43:35 2008 -0700
183185
----
184186

185187
[[_sharing_tags]]
186-
==== Sharing Tags
188+
==== اشتراک گذری برجسب ها
187189

188-
By default, the `git push` command doesn't transfer tags to remote servers.(((git commands, push)))
189-
You will have to explicitly push tags to a shared server after you have created them.
190-
This process is just like sharing remote branches -- you can run `git push origin <tagname>`.
190+
دستور `git push` برچسب ها را به صورت پیش فرض به سرور منتقل نمی کند.(((git commands, push)))
191+
شما باید برچسب ها را پس از ساخت و ایجاد آنها، مستقلا انتقال دهید.
192+
این فرآیند دقیقا شبیه انتقال و انتشار شاخه هاست -- شما می توانید دستور `git push origin <tagname>` را بکار ببرید.
191193

192194
[source,console]
193195
----
@@ -201,8 +203,9 @@ To [email protected]:schacon/simplegit.git
201203
* [new tag] v1.5 -> v1.5
202204
----
203205

204-
If you have a lot of tags that you want to push up at once, you can also use the `--tags` option to the `git push` command.
205-
This will transfer all of your tags to the remote server that are not already there.
206+
207+
اگر برچسب های زیادی دارید که میخواهید همه را یکجا به سرور منتقل کنید، می توانید از گزینه `--tags` در دستور `git push` استفاده نمایید.
208+
این دستور تمام برچسب هایی را که در سرور نیستند به سرور منتقل خواهد کرد.
206209

207210
[source,console]
208211
----
@@ -215,11 +218,11 @@ To [email protected]:schacon/simplegit.git
215218
* [new tag] v1.4-lw -> v1.4-lw
216219
----
217220

218-
Now, when someone else clones or pulls from your repository, they will get all your tags as well.
221+
اینک اگر کسی دیگر از مخزن ما نمونه برداری کرد یا تنها ثبت ها را فراخوانی و بارگزاری کرد، تمام برجسب ها را نیز دریافت خواهد نمود.
219222

220223
==== Checking out Tags
221224

222-
If you want to view the versions of files a tag is pointing to, you can do a git checkout, though this puts your repository in ``detached HEAD'' state, which has some ill side effects:
225+
اگر نسخه های فایلهایی که برچسب به آنها اشاره می کند را می خواهید ببینید، می توانید یک git checkout اجرا کنید، آگاه باشید که این کار مخزن شما را در وضعیت **detached HEAD** قرار میدهد, که امکان تاثیر جانبی ناپسندی دارد.:
223226

224227
[source,console]
225228
----
@@ -242,12 +245,12 @@ Previous HEAD position was 99ada87... Merge pull request #89 from schacon/append
242245
HEAD is now at df3f601... add atlas.json and cover image
243246
----
244247

245-
In ``detached HEAD'' state, if you make changes and then create a commit, the tag will stay the same, but your new commit won't belong to any branch and will be unreachable, except for by the exact commit hash. Thus, if you need to make changes -- say you're fixing a bug on an older version, for instance -- you will generally want to create a branch:
248+
در وضعیت **detached HEAD** اگر تغییراتی ایجاد کنید و آنها را ثبت کنید، برچسب تغییر نخواهد کرد، ولی ثبت جدید در هیچ شاخه ای جای نمیگیرد و از دسترس خارج میشود، مگر با کد کامل hash مربوط به آن ثبت. بنابراین اگر نیاز به ایجاد تغییرات دارید -- مثلا میخواهید یک باگ را در نسخه های پیشین برطرف نمایید -- شماه باید یک شاخه ی جدید بسازید.
246249

247250
[source,console]
248251
----
249252
$ git checkout -b version2 v2.0.0
250253
Switched to a new branch 'version2'
251254
----
252255

253-
If you do this and make a commit, your `version2` branch will be slightly different than your `v2.0.0` tag since it will move forward with your new changes, so do be careful.
256+
با اجرای دستور بالا، اگر یک ثبت تازه ایجاد نمودید، شاخه ی `version2` اندکی متفاوت از برچسب `v2.0.0` خواهد بود. تا زمانی که با تغییرات جدید در این شاخه به پیش می رود. پس مرافب باشید.

0 commit comments

Comments
 (0)