|
1 | | -=== Account Setup and Configuration |
| 1 | +=== Account Setup and Configuration (ستاپ و کانفیگ کردن اکانت) |
2 | 2 |
|
3 | 3 | (((GitHub, user accounts))) |
4 | | -The first thing you need to do is set up a free user account. |
5 | | -Simply visit https://github.com[], choose a user name that isn't already taken, provide an email address and a password, and click the big green ``Sign up for GitHub'' button. |
| 4 | +اولین کاری که باید انجام دهید، ایجاد یک حساب کاربری رایگان است. |
| 5 | +کافی است به نشانی https://github.com[] بروید، یک نام کاربری که قبلاً انتخاب نشده باشد وارد کنید، یک آدرس ایمیل و رمز عبور مشخص کنید و روی دکمهی سبز بزرگ «Sign up for GitHub» کلیک کنید. |
6 | 6 |
|
7 | | -.The GitHub sign-up form. |
| 7 | +فرم ثبت نام گیت هاب. |
8 | 8 | image::images/signup.png[The GitHub sign-up form.] |
9 | 9 |
|
10 | | -The next thing you'll see is the pricing page for upgraded plans, but it's safe to ignore this for now. |
11 | | -GitHub will send you an email to verify the address you provided. |
12 | | -Go ahead and do this; it's pretty important (as we'll see later). |
| 10 | +در مرحلهی بعد، صفحهی قیمتگذاری پلنهای ارتقاءیافته را مشاهده خواهید کرد، اما فعلاً میتوانید با خیال راحت آن را نادیده بگیرید. |
| 11 | +گیتهاب یک ایمیل برای تأیید آدرسی که وارد کردهاید برایتان ارسال میکند. |
| 12 | +لطفاً این تأیید را انجام دهید؛ چون این مرحله اهمیت زیادی دارد (که در ادامه خواهیم دید). |
13 | 13 |
|
14 | 14 | [NOTE] |
15 | 15 | ==== |
16 | | -GitHub provides almost all of its functionality with free accounts, except some advanced features. |
17 | | -Additionally, private repositories are limited to 3 collaborators. |
| 16 | +گیتهاب تقریباً تمام قابلیتهای خود را بهصورت رایگان در اختیار کاربران قرار میدهد، بهجز برخی امکانات پیشرفته. |
| 17 | +همچنین، مخازن خصوصی در حسابهای رایگان به حداکثر ۳ همکار محدود میشوند. |
18 | 18 |
|
19 | | -GitHub's paid plans include advanced tools and features as well as increased limits for free services, but we won't be covering those in this book. |
20 | | -To get more information about available plans and their comparison, visit https://github.com/pricing[]. |
| 19 | +پلنهای پولی گیتهاب شامل ابزارها و ویژگیهای پیشرفته، و همچنین افزایش محدودیتها برای خدمات رایگان هستند، اما ما در این کتاب به آنها نخواهیم پرداخت. |
| 20 | +برای دریافت اطلاعات بیشتر دربارهی پلنهای موجود و مقایسهی آنها، به آدرس https://github.com/pricing[] مراجعه کنید. |
21 | 21 | ==== |
22 | 22 |
|
23 | | -Clicking the Octocat logo at the top-left of the screen will take you to your dashboard page. |
24 | | -You're now ready to use GitHub. |
| 23 | +با کلیک روی لوگوی Octocat در بالای سمت چپ صفحه، به صفحه داشبورد خود منتقل میشوید. |
| 24 | +حالا آمادهاید تا از GitHub استفاده کنید. |
25 | 25 |
|
26 | | -==== SSH Access |
| 26 | +==== SSH Access (دسترسی SSH) |
27 | 27 |
|
28 | 28 | (((SSH keys, with GitHub))) |
29 | | -As of right now, you're fully able to connect with Git repositories using the `https://` protocol, authenticating with the username and password you just set up. |
30 | | -However, to simply clone public projects, you don't even need to sign up - the account we just created comes into play when we fork projects and push to our forks a bit later. |
| 29 | +در حال حاضر، شما کاملاً قادر هستید با استفاده از پروتکل `https://` به مخازن Git متصل شوید و با نام کاربری و گذرواژهای که همین حالا تنظیم کردهاید، احراز هویت کنید. |
| 30 | +اما برای کلون کردن پروژههای عمومی، حتی نیازی به ثبتنام هم ندارید — حساب کاربری که همین الان ساختیم زمانی به کار میآید که بعداً پروژهها را فورک کنیم و تغییرات را به فورکهای خود ارسال کنیم. |
31 | 31 |
|
32 | | -If you'd like to use SSH remotes, you'll need to configure a public key. |
33 | | -(If you don't already have one, see <<ch04-git-on-the-server#_generate_ssh_key>>.) |
34 | | -Open up your account settings using the link at the top-right of the window: |
| 32 | +اگر میخواهید از اتصالهای SSH استفاده کنید، باید یک کلید عمومی تنظیم کنید. |
| 33 | +(اگر هنوز کلیدی ندارید، به بخش <<ch04-git-on-the-server#_generate_ssh_key>> مراجعه کنید.) |
| 34 | +با استفاده از لینک بالای سمت راست پنجره، تنظیمات حساب خود را باز کنید: |
35 | 35 |
|
36 | 36 | .The ``Account settings'' link. |
37 | 37 | image::images/account-settings.png[The ``Account settings'' link.] |
38 | 38 |
|
39 | | -Then select the ``SSH keys'' section along the left-hand side. |
| 39 | +سپس بخش «SSH keys» را از سمت چپ صفحه انتخاب کنید. |
40 | 40 |
|
41 | 41 | .The ``SSH keys'' link. |
42 | 42 | image::images/ssh-keys.png[The ``SSH keys'' link.] |
43 | 43 |
|
44 | | -From there, click the "`Add an SSH key`" button, give your key a name, paste the contents of your `~/.ssh/id_rsa.pub` (or whatever you named it) public-key file into the text area, and click ``Add key''. |
| 44 | +از آنجا، روی دکمه "`Add an SSH key`" کلیک کنید، یک نام برای کلید خود وارد کنید، محتوای فایل کلید عمومی `~/.ssh/id_rsa.pub` (یا هر اسمی که برای آن گذاشتهاید) را در کادر متن قرار دهید و سپس روی «Add key» کلیک کنید. |
45 | 45 |
|
46 | 46 | [NOTE] |
47 | 47 | ==== |
48 | | -Be sure to name your SSH key something you can remember. |
49 | | -You can name each of your keys (e.g. "My Laptop" or "Work Account") so that if you need to revoke a key later, you can easily tell which one you're looking for. |
| 48 | +حتماً برای کلید SSH خود نامی انتخاب کنید که بتوانید بهراحتی آن را به خاطر بسپارید. |
| 49 | +میتوانید برای هر یک از کلیدهای خود نامی اختصاص دهید (مثلاً "لپتاپ من" یا "حساب کاری") تا اگر در آینده نیاز داشتید کلیدی را غیرفعال کنید، بتوانید بهراحتی تشخیص دهید کدام کلید مربوط به کجاست. |
50 | 50 | ==== |
51 | 51 |
|
52 | 52 | [[_personal_avatar]] |
53 | | -==== Your Avatar |
| 53 | +==== Your Avatar (آواتار شما) |
54 | 54 |
|
55 | | -Next, if you wish, you can replace the avatar that is generated for you with an image of your choosing. |
56 | | -First go to the ``Profile'' tab (above the SSH Keys tab) and click ``Upload new picture''. |
| 55 | +در مرحله بعد، اگر مایل باشید، میتوانید تصویر آواتاری که بهصورت خودکار برایتان ایجاد شده را با تصویری دلخواه جایگزین کنید. |
| 56 | +ابتدا به تب «Profile» (بالای تب SSH Keys) بروید و روی گزینه «Upload new picture» کلیک کنید. |
57 | 57 |
|
58 | 58 | .The ``Profile'' link. |
59 | 59 | image::images/your-profile.png[The ``Profile'' link.] |
60 | 60 |
|
61 | | -We'll choose a copy of the Git logo that is on our hard drive and then we get a chance to crop it. |
| 61 | +ما یک نسخه از لوگوی Git را که روی هارد دیسک خود داریم انتخاب میکنیم و سپس این فرصت را خواهیم داشت که آن را برش (crop) دهیم. |
62 | 62 |
|
63 | 63 | .Crop your avatar |
64 | 64 | image::images/avatar-crop.png[Crop your uploaded avatar.] |
65 | 65 |
|
66 | | -Now anywhere you interact on the site, people will see your avatar next to your username. |
| 66 | +اکنون در هر جایی از سایت که فعالیت داشته باشید، دیگران تصویر آواتار شما را در کنار نام کاربریتان خواهند دید. |
67 | 67 |
|
68 | | -If you happen to have uploaded an avatar to the popular Gravatar service (often used for Wordpress accounts), that avatar will be used by default and you don't need to do this step. |
| 68 | +اگر قبلاً در سرویس محبوب Gravatar (که اغلب برای حسابهای Wordpress استفاده میشود) یک آواتار بارگذاری کردهاید، همان تصویر بهصورت پیشفرض استفاده خواهد شد و نیازی به انجام این مرحله ندارید. |
69 | 69 |
|
70 | | -==== Your Email Addresses |
| 70 | +==== Your Email Addresses (آدرس ایمیل های شما) |
71 | 71 |
|
72 | | -The way that GitHub maps your Git commits to your user is by email address. |
73 | | -If you use multiple email addresses in your commits and you want GitHub to link them up properly, you need to add all the email addresses you have used to the Emails section of the admin section. |
| 72 | +GitHub از طریق آدرس ایمیل، کامیتهای Git شما را به حساب کاربریتان نسبت میدهد. |
| 73 | +اگر در کامیتهای خود از چندین آدرس ایمیل مختلف استفاده میکنید و میخواهید GitHub آنها را بهدرستی به هم متصل کند، باید تمام آدرسهای ایمیلی را که استفاده کردهاید، در بخش Emails از قسمت تنظیمات حساب (admin section) اضافه کنید. |
74 | 74 |
|
75 | 75 | [[_add_email_addresses]] |
76 | 76 | .Add email addresses |
77 | 77 | image::images/email-settings.png[Add all your email addresses.] |
78 | 78 |
|
79 | | -In <<_add_email_addresses>> we can see some of the different states that are possible. |
80 | | -The top address is verified and set as the primary address, meaning that is where you'll get any notifications and receipts. |
81 | | -The second address is verified and so can be set as the primary if you wish to switch them. |
82 | | -The final address is unverified, meaning that you can't make it your primary address. |
83 | | -If GitHub sees any of these in commit messages in any repository on the site, it will be linked to your user now. |
| 79 | +در بخش <<_add_email_addresses>> میتوانیم برخی از حالتهای مختلف مربوط به آدرسهای ایمیل را ببینیم: |
84 | 80 |
|
85 | | -==== Two Factor Authentication |
| 81 | +آدرس بالایی، تأیید شده و بهعنوان آدرس اصلی (Primary) تنظیم شده است؛ یعنی اعلانها و رسیدها به این آدرس ارسال میشوند. |
| 82 | +آدرس دوم نیز تأیید شده و در صورت تمایل میتوانید آن را بهعنوان آدرس اصلی انتخاب کنید. |
| 83 | +آدرس آخر تأیید نشده است، بنابراین نمیتوانید آن را بهعنوان آدرس اصلی تنظیم کنید. |
86 | 84 |
|
87 | | -Finally, for extra security, you should definitely set up Two-factor Authentication or ``2FA''. |
88 | | -Two-factor Authentication is an authentication mechanism that is becoming more and more popular recently to mitigate the risk of your account being compromised if your password is stolen somehow. |
89 | | -Turning it on will make GitHub ask you for two different methods of authentication, so that if one of them is compromised, an attacker will not be able to access your account. |
| 85 | +اگر GitHub یکی از این آدرسها را در پیامهای کامیت در هر مخزنی در سایت مشاهده کند، آن را به حساب کاربری شما لینک خواهد کرد. |
90 | 86 |
|
91 | | -You can find the Two-factor Authentication setup under the Security tab of your Account settings. |
| 87 | +==== Two Factor Authentication (تایید دو مرحله ای) |
| 88 | + |
| 89 | +در نهایت، برای افزایش امنیت، حتماً باید احراز هویت دو مرحلهای یا همان «2FA» را فعال کنید. |
| 90 | +احراز هویت دو مرحلهای یک مکانیزم امنیتی است که این روزها بسیار رایج شده و به کاهش ریسک دسترسی غیرمجاز به حساب شما در صورت دزدیده شدن رمز عبور کمک میکند. |
| 91 | +با فعال کردن این قابلیت، GitHub هنگام ورود از شما دو روش مختلف برای احراز هویت درخواست میکند، بنابراین اگر یکی از آنها به خطر بیفتد، مهاجم همچنان نمیتواند به حساب شما دسترسی پیدا کند. |
| 92 | + |
| 93 | +برای تنظیم احراز هویت دو مرحلهای، به تب «Security» در بخش تنظیمات حساب کاربری خود بروید. |
92 | 94 |
|
93 | 95 | .2FA in the Security Tab |
94 | 96 | image::images/2fa-1.png[2FA in the Security Tab] |
95 | 97 |
|
96 | | -If you click on the ``Set up two-factor authentication'' button, it will take you to a configuration page where you can choose to use a phone app to generate your secondary code (a ``time based one-time password''), or you can have GitHub send you a code via SMS each time you need to log in. |
| 98 | +اگر روی دکمه «Set up two-factor authentication» کلیک کنید، به صفحهای هدایت میشوید که در آن میتوانید روش دلخواه خود را برای دریافت کد دومرحلهای انتخاب کنید: |
| 99 | +یا از یک اپلیکیشن موبایل برای تولید کد ثانویه استفاده کنید (کدی یکبارمصرف و مبتنی بر زمان)، |
| 100 | +یا اینکه GitHub هر بار هنگام ورود، یک کد از طریق پیامک (SMS) برایتان ارسال کند. |
97 | 101 |
|
98 | | -After you choose which method you prefer and follow the instructions for setting up 2FA, your account will then be a little more secure and you will have to provide a code in addition to your password whenever you log into GitHub. |
| 102 | +پس از انتخاب روش مورد نظر و انجام مراحل راهاندازی 2FA طبق دستورالعملها، حساب شما کمی امنتر خواهد شد و از این پس باید هنگام ورود به GitHub، علاوه بر رمز عبور، آن کد امنیتی را نیز وارد کنید. |
0 commit comments