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
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/remotes.asc
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
[[_remote_repos]]
2
2
=== Working with Remotes
3
3
4
-
To be able to collaborate on any Git project, you need to know how to manage your remote repositories.
5
-
Remote repositories are versions of your project that are hosted on the Internet or network somewhere.
6
-
You can have several of them, each of which generally is either read-only or read/write for you.
7
-
Collaborating with others involves managing these remote repositories and pushing and pulling data to and from them when you need to share work.
8
-
Managing remote repositories includes knowing how to add remote repositories, remove remotes that are no longer valid, manage various remote branches and define them as being tracked or not, and more.
9
-
In this section, we'll cover some of these remote-management skills.
4
+
برای همکاری در پروژه های گیت، دانستن شیوه ی مدیریت مخارن راه دور لازم است.
5
+
مخازن راه دور یک نسخه از پروژه ی شما هستند که در اینترنت یا جایی دیگر در شبکه قرار دارند.
6
+
می توانید جند تا از آنها را داشته باشید که هرکدام فقط خواندی یا با اجزاه خواندن و نوشتن باشد.
7
+
همکاری با دیگران شما را با مدیریت این مخازن و دریافت داده از آنها و انتقال داده به آنها درگیر می کند. که بتوانید کارهایتان را به اشتراک بگزارید.
8
+
مدیریت مخازن راه دور به مفهوم افزودن مخازن راه دور، حذف کردن مخازن به کار نخور، مدیریت شاخه های گوناگون و تعریف آنها به عنوان دنبال شونده با بر داشتن این تعریف و کارهای دیگر است.
9
+
در این بخش، ما به برخی از این وهارتهای مدریت مخازن راه دور خواهیم پرداخت.پ
10
10
11
11
[NOTE]
12
-
.Remote repositories can be on your local machine.
12
+
.مخازن راه دور می توانند روی کامپیوتر خودتان باشند.
13
13
====
14
-
It is entirely possible that you can be working with a ``remote'' repository that is, in fact, on the same host you are.
15
-
The word ``remote'' does not necessarily imply that the repository is somewhere else on the network or Internet, only that it is elsewhere.
16
-
Working with such a remote repository would still involve all the standard pushing, pulling and fetching operations as with any other remote.
14
+
به سادگی امکان پذیر است که شما با مخازن ``remote'' ی کار کنید که در واقع در همان کامپیوتر خودتان قرار دارد.
15
+
واژه ی ``remote`` لزوما به معنی این نیست که مخزن دور از دسترس، روی اینترنت یا هرجای دیگر شبکه باشد، تنها به این معنی است که مخزن جای دیگری است.
16
+
این گونه مخازن راه دور نیز همانند دیگر مخازن راه دور با مسائل دریافت داده، ارسال داده و عملیات دیگر درگیر هستند.
17
17
====
18
18
19
19
==== Showing Your Remotes
20
20
21
-
To see which remote servers you have configured, you can run the `git remote` command.(((git commands, remote)))
22
-
It lists the shortnames of each remote handle you've specified.
23
-
If you've cloned your repository, you should at least see `origin` -- that is the default name Git gives to the server you cloned from:
21
+
برای دیدن سرورهای راه دوری که پیکربندی شده اند، می توانید دستور `git remote` را اجرا کنید.(((git commands, remote)))
22
+
این دستور نامهای کوتاه سرورهای راه دوری که شما برگزیدید را نشان خواهد داد.
23
+
اگر نسخه ای از یک مخزن راه دور بردارید، باید دست کم یک `origin` ببنیند. -- گیت به شکل پیش فرض به سروری که با آن کار می کند این نام را می دهد:
24
24
25
25
[source,console]
26
26
----
@@ -36,7 +36,7 @@ $ git remote
36
36
origin
37
37
----
38
38
39
-
You can also specify `-v`, which shows you the URLs that Git has stored for the shortname to be used when reading and writing to that remote:
39
+
همچنین متوانید `-v` را بکار گیرید، این دستور به شما نشانی های URL ی را نشان می دهد که برای خواندن و نوشتن داده های پروژه به کار می روند..
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/viewing-history.asc
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
[[_viewing_history]]
2
-
=== Viewing the Commit History
2
+
=== دیدن تاریخچه ی ثبت ها
3
3
4
-
After you have created several commits, or if you have cloned a repository with an existing commit history, you'll probably want to look back to see what has happened.
5
-
The most basic and powerful tool to do this is the `git log` command.
4
+
پس از اینکه چندین ثبت ساختید، یا شاید یک مخزن را که خود تارخچه ای از ثبت ها را در بر دارد، کپی کردید، شاید بخواهید ببینید که در ثبت های پیشین جه پیش آمده است.
5
+
یک ابزار بسیار اساسی و قدرتمند برای این کار دستور `git log` است.
6
6
7
-
These examples use a very simple project called ``simplegit''.
8
-
To get the project, run
7
+
در این مثال یک پروژه بسیار ساده به نام ``simplegit'' را می بینیم.
When you run `git log` in this project, you should get output that looks something like this:(((git commands, log)))
15
+
هنگامی که `git log` را در این پروژه اجرا میکنید, چیزی شبیه این را می بینید:(((git commands, log)))
16
16
17
17
[source,console]
18
18
----
@@ -36,14 +36,14 @@ Date: Sat Mar 15 10:31:28 2008 -0700
36
36
first commit
37
37
----
38
38
39
-
By default, with no arguments, `git log` lists the commits made in that repository in reverse chronological order -- that is, the most recent commits show up first.
40
-
As you can see, this command lists each commit with its SHA-1 checksum, the author's name and email, the date written, and the commit message.
39
+
هنگامی که دستور `git log` را بدون هیچ پیشوند و پسوندی بکار می گیرید، ثبت های موجود در مخرن به ترتیب زمانی معکوس نمایش داده می شوند -- یعنی ثبت های اخیر بالاتر و زودتر نمایش داده می شوند.
40
+
همان گونه که می بینید، این دستور ثبت ها را به همراه کد SHA-1، نام و ایمیل نویسنده، تاریخ نگارش و متن پیام ثبت نشان میدهد.
41
41
42
-
A huge number and variety of options to the `git log` command are available to show you exactly what you're looking for.
43
-
Here, we'll show you some of the most popular.
42
+
دستور `git log` برای برآوردن نیاز شما و نشان دادن هر آنجه که به دنبال آن هستید، گزینه های فراوان و گوناگونی دارد.
43
+
در این ما چندتا از پرکاربردهایشان را به شما نشان می دهیم.
44
44
45
-
One of the more helpful options is `-p` or `--patch`, which shows the difference (the _patch_ output) introduced in each commit.
46
-
You can also limit the number of log entries displayed, such as using `-2` to show only the last two entries.
45
+
یک گزینه سودمند که می تواند تفاوتهای موجود در هر ثبت را نشان دهد گزینه `p` یا `--patch` است.
46
+
همچنین می توانید تعداد ردیف های نمایش داده شده را محدود کنید، برای نمونه با `2` برای نمایش داده دو ورودی آخر.
0 commit comments