How Do You Use Git and GitHub?
for Beginners (Tutorial)
![]() |
Install Git and create a GitHub account
|
Git is a version control system created by the programming icon, Linus Torvalds. Click here to install Git
on your computer and follow the instruction Once you've done that, create a GitHub account here |
Git هو نظام تحكم في الإصدار تم إنشاؤه
بواسطة أيقونة البرمجة ، Linus Torvalds. انقر هنا
لتثبيت Git على جهاز الكمبيوتر الخاص بك واتبع
التعليمات. بمجرد
القيام بذلك، قم بإنشاء حساب GitHub هنا |
|
|
|
Your Identity
|
The first thing you should do when you install Git is to
set your user name and email address. |
أول
شيء يجب عليك فعله عند تثبيت Git هو تعيين اسم المستخدم وعنوان
البريد الإلكتروني الخاص بك. |
|
|
Your Editor
|
You can configure the default text editor that will be
used when Git needs you to type in a message. If not configured, Git
uses your system’s default editor. |
يمكنك
تكوين محرر النص الافتراضي الذي سيتم استخدامه عند Git بحاجة
لكتابة رسالة. إذا لم تتم تهيئته، يستخدم Git المحرر الافتراضي لنظامك. |
|
|
Use git config --list to check your configuration
Create a local git repository
|
To use git, we'll be using the terminal. Open CMD
command line and move to where you want to place the project on your local machine using the cd (change directory) command. |
لاستخدام git، سنستخدم الطرفية. افتح سطر أوامر CMD وانتقل
إلى المكان الذي تريد وضع المشروع فيه على جهازك المحلي باستخدام الأمرcd |
|
|
Initialize a git repository
|
To initialize a git repository in the root of
the folder, run the git init command Go ahead and add a new
file to the project, |
لتهيئة
مستودع git في
جذر المجلد، قم بتشغيل الأمر git init ثم قم بإضافة ملف جديد إلى المشروع، |
|
|
|
After creating the new file, you can use the |
بعد
إنشاء الملف الجديد، يمكنك استخدام الأمر git
status لمعرفة
الملفات التي يعرفها git. |
|
|
Add a file to the staging environment
|
Commits make up the essence of your project and allow you
to go back to the state of a project at any point. To add a file to a commit,
you first need to add it to the staging environment. To do this, you can use
the git add <filename> command |
تشكل الالتزامات جوهر مشروعك وتسمح لك بالعودة إلى حالة المشروع في أي وقت. لإضافة ملف إلى التزام، تحتاج أولاً إلى إضافته إلى بيئة المشروع. للقيام بذلك، يمكنك استخدام الأمر git add <filename> |
|
|
Viewing the
Commit History
|
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. The most basic and powerful tool to do
this is the git log command. |
بعد
إنشاء العديد من عمليات التنفيذ، أو إذا قمت بنسخ مستودع يحتوي على سجل التزام حالي،
فربما ترغب في الرجوع إلى الوراء لمعرفة ما حدث. الأداة الأساسية والفعالة
للقيام بذلك هي الأمر git log. |
|
|


Comments
Post a Comment