Git introduction
-
Upload
tayebmerabti -
Category
Technology
-
view
156 -
download
3
Transcript of Git introduction
مدخلgitالى ال
قصة نظام التحكم با'راجعات
ملفات و مجلدات
ملفات ا6شروع
النسخة 1.2
النسخة 1.3
النسخة 2.0
الVCS ا6حلية
ملفات ا6شروعقاعدة البيانات
النسخ القديمة
samedi 16 février 13
مدخلgitالى ال
الVCS ا6ركزية
قاعدة البيانات
مستخدم أ
مستخدم ب
مستخدم ج
قصة نظام التحكم با'راجعات
مستخدم أ
مستخدم ب
مستخدم ج
الVCS ا6وزعة
الgit ينتمي لعائلة الVCS ا'وزعة
samedi 16 février 13
مدخلgitالى ال
gitنشأة ال
linux kernel6٠شروع ال
٠لهدف توزيعه بسرعة و بطريقة طبيعية
٠يمكنه استحمال مشاريع كبرى
samedi 16 février 13
مدخلgitالى ال
gitاستعمال ال
٠ واجهة سطر أوامر
٠ العديد من الواجهات الرسومية
٠ الصفحة الرئيسية http://git-scm.com/
samedi 16 février 13
مدخلgitالى ال
$ git helpusage: git [--version] [--exec-path[=<path>]] [--html-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [-c name=value] [--help] <command> [<args>]
The most commonly used git commands are: add Add file contents to the index bisect Find by binary search the change that introduced a bug...
samedi 16 février 13
مدخلgitالى ال
$ git help configNAME git-config - Get and set repository or global options
SYNOPSIS git config [<file-option>] [type] [-z|--null] name [value [value_regex]] git config [<file-option>] [type] --add name value git config [<file-option>] [type] --replace-all name value [value_regex] git config [<file-option>] [type] [-z|--null] --get name [value_regex] git config [<file-option>] [type] [-z|--null] --get-all name [value_regex] git config [<file-option>] [type] [-z|--null] --get-regexp name_regex [value_regex]
...
git أمر
samedi 16 février 13
مدخلgitالى ال
$ git config --global user.name "tayeb merabti" $ git config --global user.email [email protected]
من له الحق بالتغيير
اaيميل ا6ستعمل
gitاعداد ال
samedi 16 février 13
مدخلgitالى ال
$ mkdir my-repo$ cd my-repo$ git initInitialized empty Git repository in /Users/tayebmerabti/Documents/TutorielCourse/gitCourse/my-repo/.git/
اعداد ا'ستودع
samedi 16 février 13
مدخلgitالى ال
gitسير العمل في ال
إنشاء ا6لف
إضافة ا6لف إلى ا6ستودع
حفظ التغيرات
ا6لف بدون آثر
مستعد .خذ صورة للملف
التقاط الصورة و حفظها
samedi 16 février 13
مدخلgitالى ال
gitسير العمل في ال
إنشاء ا6لف
إضافة ا6لف إلى ا6ستودع
حفظ التغيرات
إنشاء ملف و تغيير في ملف
إضافة ا6لفq إلى ا6ستودع
حفظ التغيرات
samedi 16 février 13
مدخلgitالى ال
$ git status# On branch master## Initial commit## Untracked files:# (use "git add <file>..." to include in what will be committed)## README.txtnothing added to commit but untracked files present (use "git add" to track)
README.txt إنشاء ا6لف
ا6لف
samedi 16 février 13
مدخلgitالى ال
$ git add README.txt$ git status On branch master## Initial commit## Changes to be committed:# (use "git rm --cached <file>..." to unstage)## new file: README.txt#
إضافة ا6لف إلى ا6ستودع
samedi 16 février 13
مدخلgitالى ال
$ git commit -m 'Create a README'[master (root-commit) f0b65c3] Create a README 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 README.txt
حفظ التغيرات
$ git status# On branch master# Untracked files:# (use "git add <file>..." to include in what will be committed)#nothing added to commit but untracked files present (use "git add" to track)
samedi 16 février 13
مدخلgitالى ال
حفظ التغيرات
$ git status# On branch master# Changes not staged for commit:## modified: README.txt## Untracked files:# # INSTALL.txtno changes added to commit
ماذا لو غيرنا في ا6لف README و قمنا بإضافة ملف آخر ؟
samedi 16 février 13
مدخلgitالى ال
اvضافة إلى ا6ستودع
$ git add README.txt INSTALL.txtأو
$ git add --all
$ git status# On branch master# Changes to be committed:# (use "git reset HEAD <file>..." to unstage)## new file: INSTALL.txt# modified: README.txt
samedi 16 février 13
مدخلgitالى ال
حفظ التغييرات
$ git commit -m "Add INSTALL and modified README" master 74e8c51] Add INSTALL and modified README 3 files changed, 4 insertions(+), 1 deletions(-) create mode 100644 .DS_Store create mode 100644 INSTALL.txt
samedi 16 février 13
مدخلgitالى ال
timelineتسجيل التاريخ أو ال$ git logcommit 74e8c512b6596286741cefd79de67a568bd33a36Author: tayeb83 <[email protected]>Date: Fri Feb 15 22:26:20 2013 +0100
Add INSTALL and modified README
commit f0b65c35f19af93610a726dc00e87e3030599935Author: tayeb83 <[email protected]>Date: Fri Feb 15 00:03:07 2013 +0100
Create a README
samedi 16 février 13