forked from lubojr/naucse.python.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
83 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,62 @@ | ||
# Git | ||
# جيت (Git) | ||
|
||
There is another program that we will install and that will later let us cooperate | ||
and develop programs together with other people. It's called [Git](https://git-scm.com/). | ||
Let's install it and set it up. | ||
هناك برنامج آخر سنقوم بتثبيته والذي سيمكننا لاحقًا من التعاون | ||
وتطوير البرامج مع أشخاص آخرين. إنه يسمى [Git](https://git-scm.com/). | ||
دعنا نقوم بتثبيته وإعداده. | ||
|
||
On some operating systems, for convenience, we shall also install [Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) | ||
على بعض أنظمة التشغيل ، من أجل تبسيط المهام ، سنقوم أيضًا بتثبيت [Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) | ||
|
||
Choose a page depending on your operating system: | ||
اختر صفحة حسب نظام التشغيل الخاص بك: | ||
|
||
* [Linux]({{ subpage_url('linux') }}) | ||
* [Windows]({{ subpage_url('windows') }}) | ||
* [macOS]({{ subpage_url('macos') }}) | ||
|
||
After you finish installation of `git` return back here to finish the next part **Settings**. | ||
بعد الانتهاء من تثبيت `git` ، عد إلى هنا لإنهاء الجزء التالي **(الإعدادات)**. | ||
|
||
## Settings | ||
## الإعدادات | ||
|
||
Several people can collaborate in one project in Git. | ||
To track who make a specific change, we need to | ||
tell Git our name and e-mail. | ||
At the command prompt, enter the following commands, but change the | ||
name and address to yours: | ||
يمكن للعديد من الأشخاص التعاون في مشروع واحد في Git. | ||
لتتبع من قام بتغيير محدد ، نحتاج إلى | ||
أخبار Git باسمنا وعنوان بريدنا الإلكتروني. | ||
على المحطة (terminal) ، أدخل الأوامر التالية ، ولكن قم بتغيير | ||
الاسم والعنوان إلى اسمك: | ||
|
||
```console | ||
$ git config --global user.name "Jane Berry" | ||
$ git config --global user.email [email protected] | ||
``` | ||
|
||
You can of course use a nickname or even | ||
fake email, but then it will be more complicated to | ||
engage in team projects. | ||
Anyway, your name and email can be changed at any time | ||
by typing the configuration commands again. | ||
يمكنك بالطبع استخدام اسم مستعار أو حتى | ||
البريد الإلكتروني المزيف ، ولكن بعد ذلك سيكون الأمر أكثر تعقيدًا | ||
للمشاركة في مشاريع الفريق. | ||
على أي حال ، يمكن تغيير اسمك وعنوان بريدك الإلكتروني في أي وقت | ||
عن طريق كتابة الأوامر مرة أخرى. | ||
|
||
> [note] | ||
> If you are afraid of spam, do not worry. | ||
> Your e-mail address can be viewed only by people who download the project | ||
> to which you contributed. | ||
> Spammers mostly focus on less technically capable people than Git users. :) | ||
> إذا كنت تخشى من البريد العشوائي(spam) ، فلا تقلق. | ||
> يمكن ان تقتصر معرفة عنوان بريدك الإلكتروني فقط على الأشخاص الذين يقومون بتنزيل المشروع | ||
> الذي ساهمت فيه. | ||
> يركز مُرسلو البريد العشوائي (spam) بشكل أساسي على الأشخاص الأقل قدرة تقنيًا من مستخدمي Git. :) | ||
You can also set up color listings - if you don't think | ||
(like some Git authors) that the command line should be black and white: | ||
يمكنك أيضًا إعداد قوائم الألوان - إذا كنت لا تعتقد (مثل بعض مؤلفي Git) أن سطر الأوامر يجب أن يكون أسود وأبيض: | ||
|
||
```console | ||
$ git config --global color.ui true | ||
``` | ||
|
||
> [note] | ||
> Running `git config` does not print any message that the operation was successful. | ||
> This is normal; many other commands behave like that, for example `cd`. | ||
> لا يقوم تشغيل `git config` بطباعة أي رسالة تفيد بأن العملية كانت ناجحة. | ||
> هذا طبيعي ؛ العديد من الأوامر الأخرى تتصرف على هذا النحو ، على سبيل المثال `cd`. | ||
> | ||
> You can check your current git configuration with the command: | ||
> يمكنك التحقق من إعدادات git الحالية باستخدام الأمر: | ||
> | ||
> ```console | ||
> $ git config --global --list | ||
> user.name=Jane Berry | ||
> [email protected] | ||
> ``` | ||
And that's all! You have installed and configured `Git`. | ||
هذا كل شيء! لقد قمت بتثبيت و ضبط اعدادات `Git`. | ||
**Congratulations!** | ||
**تهانينا!** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
title: Git installation | ||
title: تثبيت Git (installation) | ||
style: md | ||
attribution: | ||
- Translated by Mussab Abdalla | ||
- Translated by Marketa Muzikova | ||
- | | ||
Originally written by Petr Viktorin, 2014-2017 for [PyLadies CZ]. | ||
[PyLadies CZ]: https://naucse.python.cz/course/pyladies/git/install/ | ||
license: cc-by-sa-40 | ||
subpages: | ||
linux: | ||
title: Git installation - Linux | ||
title: Git (installation) تثبيت - (Linux) لينيكس | ||
windows: | ||
title: Git installation - Windows | ||
title: Git (installation) تثبيت - (Windows) ويندوز | ||
macos: | ||
title: Git installation - macOS | ||
title: Git (installation) تثبيت - (macOS) ماكنتوش |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
## Git installation on Ubuntu/Debian | ||
## تثبيت Git على Ubuntu/Debian | ||
|
||
```console | ||
sudo apt-get install git nano pass | ||
``` | ||
|
||
If you are using some other distribution we expect that you already know | ||
how to install programs. Go ahead and install *git*, *pass* and *nano*. | ||
إذا كنت تستخدم توزيعًا آخر ، فإننا نتوقع أنك تعرف بالفعل | ||
كيفية تثبيت البرامج. تابع وقم بتثبيت *git* و *pass* و *nano*. | ||
|
||
After you have installed git, choose your Git editor. | ||
If you do not like Vim (or you do not know what it is) | ||
enter this command to choose a more user-friendly editor called Nano: | ||
بعد تثبيت git ، اختر محرر Git الخاص بك. | ||
إذا كنت لا تحب Vim (أو لا تعرف ما هو) | ||
أدخل هذا الأمر لاختيار محرر أكثر سهولة في الاستخدام يسمى Nano: | ||
|
||
```console | ||
git config --global core.editor nano | ||
``` | ||
|
||
After this step, please install the [Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) by downloading **gcm-linux.(version).deb** package from [official releases of gcm](https://github.com/GitCredentialManager/git-credential-manager/releases/latest). | ||
بعد هذه الخطوة ، يرجى تثبيت [Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) عن طريق تنزيل **gcm-linux.(version).deb** من [الإصدارات الرسمية لـ gcm](https://github.com/GitCredentialManager/git-credential-manager/releases/latest). | ||
|
||
After that install and configure with commands: | ||
بعد ذلك قم بالتثبيت وضبط الاعدادات باستخدام الأوامر: | ||
|
||
```console | ||
sudo dpkg -i <path-to-package> | ||
git-credential-manager-core configure | ||
git config --global credential.credentialStore gpg | ||
``` | ||
|
||
Next, we need to generate a secure credentials store. Run following two commands to create and use a new GPG key pair | ||
بعد ذلك ، نحتاج إلى إنشاء مخزن بيانات اعتماد آمن. قم بتشغيل الأمرين التاليين لإنشاء واستخدام زوج مفاتيح GPG جديد | ||
|
||
```console | ||
gpg --gen-key | ||
pass init <gpg-id> # where <gpg-id> is the username generated in step 1 | ||
pass init <gpg-id> # حيث <gpg-id> هو اسم المستخدم الذي تم إنشاؤه في الخطوة 1 | ||
``` | ||
|
||
Now continue with the rest of setup at [General Settings in Git install]({{ lesson_url('git-en/install') }}). | ||
الآن تابع بقية الإعداد في [الإعدادات العامة في تثبيت Git]({{ lesson_url('git-en/install') }}). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
## macOS installation of git | ||
## تثبيت Git على macOS | ||
|
||
Try to run `git` on the command line. | ||
If it's already installed, it will show you how to use it. | ||
Otherwise, install it using Homebrew: | ||
حاول تشغيل `git` على سطر الأوامر. | ||
إذا كان مثبتًا بالفعل ، فسيُظهر لك كيفية استخدامه. | ||
وإلا ، فقم بتثبيته باستخدام Homebrew: | ||
|
||
```console | ||
brew install git | ||
``` | ||
|
||
It is still necessary to set up your Git editor (enter `nano`, | ||
even if you installed for example VS Code during the installation of the editor). | ||
You do that with this command: | ||
لا يزال من الضروري إعداد محرر Git الخاص بك (أدخل `nano` ، | ||
حتى إذا قمت بتثبيت -على سبيل المثال- VS Code ). | ||
يمكنك القيام بذلك باستخدام هذا الأمر: | ||
|
||
```console | ||
git config --global core.editor nano | ||
``` | ||
|
||
After that install and configure [Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md#macos) with command: | ||
بعد ذلك قم بتثبيت وتكوين [Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md#macos) باستخدام الأمر: | ||
|
||
```console | ||
brew install --cask git-credential-manager | ||
``` | ||
|
||
Now continue with the rest of setup at [General Settings in Git install]({{ lesson_url('git-en/install') }}). | ||
الآن تابع بقية الإعداد في [الإعدادات العامة في تثبيت Git]({{ lesson_url('git-en/install') }}). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
## Windows installation of git | ||
## تثبيت Git على Windows | ||
|
||
Go to [git-scm.org](https://git-scm.com/download/win), download **Git Standalone Installer 64-bit Git for Windows Setup** and install it. | ||
When installing, go through the wizard and select these options: | ||
انتقل إلى [git-scm.org](https://git-scm.com/download/win) ، وقم بتنزيل **Git Standalone Installer 64-bit Git for Windows Setup** وقم بتثبيته. | ||
عند التثبيت ، باستخدام المثبت (wizard) اختر الخيارات التالية: | ||
|
||
* Run Git from the Windows Command Prompt | ||
* Checkout Windows-style, commit Unix-style line endings | ||
|
||
Do not change any other options, they can be left as default. | ||
Please ensure that **Git Credential Manager Core** option is ["checked"](https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md#git-for-windows-star), to install the extra tool by default with Git installation. | ||
لا تقم بتغيير أي خيارات أخرى ، يمكن تركها كما هي. | ||
يرجى التأكد من أن خيار **Git Credential Manager Core** ["تم تحديده"](https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md#git-for-windows-star) ، لتثبيت الأداة الإضافية افتراضيًا مع تثبيت Git. | ||
|
||
{{ figure( img=static('windows-git-cred-manager.png'), alt='Git installation credential manager allow', ) }} | ||
|
||
|
||
Then set your Git editor. | ||
If you have a terminal window open, close it, and open a new one. | ||
(The installation changes system settings which have to be loaded again.) | ||
ثم قم بإعداد محرر(editor) Git الخاص بك. | ||
إذا كان لديك نافذة محطة (terminal) مفتوحة ، فقم بإغلاقها وافتح نافذة جديدة. | ||
(يؤدي التثبيت إلى تغيير إعدادات النظام التي يجب تحميلها مرة أخرى.) | ||
|
||
In the new command line, enter: | ||
في ال(terminal) الجديد ، أدخل: | ||
|
||
```console | ||
> git config --global core.editor notepad | ||
> git config --globaﻻشسهؤسl core.editor notepad | ||
> git config --global format.commitMessageColumns 80 | ||
> git config --global gui.encoding utf-8 | ||
``` | ||
|
||
Now continue with the rest of setup at [General Settings in Git install]({{ lesson_url('git-en/install') }}). | ||
الآن تابع بقية الإعدادات في [الإعدادات العامة في تثبيت Git]({{ lesson_url('git-en/install') }}). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters