Skip to content

Commit 6d20b63

Browse files
authored
Merge pull request #10 from hjavadish/master
view-history and remotes (uncompleted)
2 parents bcc9c71 + b4a5d5c commit 6d20b63

File tree

3 files changed

+43
-43
lines changed

3 files changed

+43
-43
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
[[_remote_repos]]
22
=== Working with Remotes
33

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+
در این بخش، ما به برخی از این وهارتهای مدریت مخازن راه دور خواهیم پرداخت.پ
1010

1111
[NOTE]
12-
.Remote repositories can be on your local machine.
12+
.مخازن راه دور می توانند روی کامپیوتر خودتان باشند.
1313
====
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+
این گونه مخازن راه دور نیز همانند دیگر مخازن راه دور با مسائل دریافت داده، ارسال داده و عملیات دیگر درگیر هستند.
1717
====
1818

1919
==== Showing Your Remotes
2020

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` ببنیند. -- گیت به شکل پیش فرض به سروری که با آن کار می کند این نام را می دهد:
2424

2525
[source,console]
2626
----
@@ -36,7 +36,7 @@ $ git remote
3636
origin
3737
----
3838

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 ی را نشان می دهد که برای خواندن و نوشتن داده های پروژه به کار می روند..
4040

4141
[source,console]
4242
----
@@ -45,8 +45,8 @@ origin https://github.com/schacon/ticgit (fetch)
4545
origin https://github.com/schacon/ticgit (push)
4646
----
4747

48-
If you have more than one remote, the command lists them all.
49-
For example, a repository with multiple remotes for working with several collaborators might look something like this.
48+
اگر بیش از یک سرور راه دور داشته باشید، همه آنها به شما نشان داده خواهد شد.
49+
برای نمونه، یک مخزن با چند سرور برای مشارکت کنندگان متعدد چیزی شبیه این خواهد بود.
5050

5151
[source,console]
5252
----

book/02-git-basics/sections/viewing-history.asc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[[_viewing_history]]
2-
=== Viewing the Commit History
2+
=== دیدن تاریخچه ی ثبت ها
33

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` است.
66

7-
These examples use a very simple project called ``simplegit''.
8-
To get the project, run
7+
در این مثال یک پروژه بسیار ساده به نام ``simplegit'' را می بینیم.
8+
برای داشتن پروژه تنها دستور زیر را اجرا کنید:
99

1010
[source,console]
1111
----
1212
$ git clone https://github.com/schacon/simplegit-progit
1313
----
1414

15-
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)))
1616

1717
[source,console]
1818
----
@@ -36,14 +36,14 @@ Date: Sat Mar 15 10:31:28 2008 -0700
3636
first commit
3737
----
3838

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، نام و ایمیل نویسنده، تاریخ نگارش و متن پیام ثبت نشان میدهد.
4141

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+
در این ما چندتا از پرکاربردهایشان را به شما نشان می دهیم.
4444

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` برای نمایش داده دو ورودی آخر.
4747

4848
[source,console]
4949
----

status.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
"code": "en",
3-
"language": "English",
4-
"maintainers": ["schacon"],
2+
"code": "fa",
3+
"language": "Persin",
4+
"maintainers": ["hjavadish"],
55
"files": {
66
"01-introduction": {
7-
"1-introduction.asc": 0,
8-
"sections/about-version-control.asc": 0,
7+
"1-introduction.asc": 100,
8+
"sections/about-version-control.asc": 95,
99
"sections/basics.asc": 0,
10-
"sections/command-line.asc": 0,
11-
"sections/first-time-setup.asc": 0,
10+
"sections/command-line.asc": 100,
11+
"sections/first-time-setup.asc": 95,
1212
"sections/help.asc": 0,
13-
"sections/history.asc": 0,
14-
"sections/installing.asc": 0
13+
"sections/history.asc": 100,
14+
"sections/installing.asc": 50
1515
},
1616
"02-git-basics": {
17-
"1-git-basics.asc": 0,
18-
"sections/aliases.asc": 0,
19-
"sections/getting-a-repository.asc": 0,
17+
"1-git-basics.asc": 100,
18+
"sections/aliases.asc": 90,
19+
"sections/getting-a-repository.asc": 40,
2020
"sections/recording-changes.asc": 0,
2121
"sections/remotes.asc": 0,
22-
"sections/tagging.asc": 0,
23-
"sections/undoing.asc": 0,
24-
"sections/viewing-history.asc": 0
22+
"sections/tagging.asc": 95,
23+
"sections/undoing.asc": 10,
24+
"sections/viewing-history.asc": 20
2525
},
2626
"03-git-branching": {
2727
"1-git-branching.asc": 0,

0 commit comments

Comments
 (0)