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/viewing-history.asc
+11-10Lines changed: 11 additions & 10 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,12 +36,13 @@ 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
+
یک گزینه سودمند که می تواند تفاوتهای موجود در هر ثبت
45
46
One of the more helpful options is `-p` or `--patch`, which shows the difference (the _patch_ output) introduced in each commit.
46
47
You can also limit the number of log entries displayed, such as using `-2` to show only the last two entries.
0 commit comments