Skip to content

Commit 7cd4631

Browse files
committed
Update aliases.asc
بخشی از نامهای متسعار ترجمه شد
1 parent 3757e75 commit 7cd4631

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[[_git_aliases]]
2-
=== Git Aliases
2+
=== نام های مستعار در گیت
33

44
(((aliases)))
55
Before we finish this chapter on basic Git, there's just one little tip that can make your Git experience simpler, easier, and more familiar: aliases.
66
We won't refer to them or assume you've used them later in the book, but you should probably know how to use them.
77

8-
Git doesn't automatically infer your command if you type it in partially.
9-
If you don't want to type the entire text of each of the Git commands, you can easily set up an alias for each command using `git config`.(((git commands, config)))
10-
Here are a couple of examples you may want to set up:
8+
گیت توانایی پی بردن خودکار به دستورات نیمه نوشته را ندارد.
9+
اگر می خواهید فقط بخشی از یک دستور را تایپ کنید و گیت آن را بشناسد، به سادگی می توان یک نام مستعار با دستور
10+
`git config`.(((git commands, config))) بسازید.
11+
برای ساخت نام مستعار، در اینجا چند مثال می آورید:
1112

1213
[source,console]
1314
----
@@ -17,8 +18,8 @@ $ git config --global alias.ci commit
1718
$ git config --global alias.st status
1819
----
1920

20-
This means that, for example, instead of typing `git commit`, you just need to type `git ci`.
21-
As you go on using Git, you'll probably use other commands frequently as well; don't hesitate to create new aliases.
21+
یعنی به جای نوشتن دستور `git commit`, دستور `git ci` بسنده می کند.
22+
همین طور که با گیت کار می کنید، شاید دستوری دیگر را بسیار تکرار کنید; با خیال آسوده نامهای مستعار بسازید.
2223

2324
This technique can also be very useful in creating commands that you think should exist.
2425
For example, to correct the usability problem you encountered with unstaging a file, you can add your own unstage alias to Git:

0 commit comments

Comments
 (0)