Your SlideShare is downloading. ×
0
Git‫)(& إ$# ال‬                           ‫ا.-+-,+ت‬                                1samedi 16 février 13
‫321 0/"م ا-,+*) ("&ا$#"ت‬                                        ‫ا$:987 2.1‬                                        ‫ا$:...
‫321 0/"م ا-,+*) ("&ا$#"ت‬                                  ‫@+?(ة ا$=,+<+ت‬                                              ...
git‫ة ال‬DE0                                 linux kernel‫٠654وع ال‬                       7,O,=P 7CB4QR ‫94?7 و‬R SOB‫ز‬M...
git‫,#@"ل ال‬F‫ا‬                        4)‫4 أوا‬Q- 7V[‫٠ وا‬  7,)M-4$‫+ت ا‬V[‫ا‬M$‫( ) ا‬B(O$‫٠ ا‬                      ...
$ git help  usage: git [--version] [--exec-path[=<path>]] [--html-path]          [-p|--paginate|--no-pager] [--no-replace-...
git 4)‫أ‬  $ git help config  NAME     git-config - Get and set repository or global options  SYNOPSIS     git config [<file-o...
git‫ا:6اد ال‬                                      4,,_I$+R `;$‫ ا‬S$ )  $ git config --global user.name "tayeb merabti"  $...
‫,<دع‬I‫ا:6اد ا‬  $ mkdir my-repo  $ cd my-repo  $ git init  Initialized empty Git repository in /Users/tayebmerabti/  Doc...
git‫? ال‬J 4@#-‫& ا‬KF                             b/6‫إ<5+ء ا‬            4i‫(ون آ‬R b/6‫ا‬                       ‫دع‬MI9...
git‫? ال‬J 4@#-‫& ا‬KF                             b/6‫إ<5+ء ا‬                       ‫دع‬MI96‫ إ$# ا‬b/6‫7 ا‬e+f‫إ‬      ...
README.txt b/6‫إ<5+ء ا‬   $ git status   # On branch master   #   # Initial commit   #   # Untracked files:   # (use "git a...
‫دع‬MI96‫ إ$# ا‬b/6‫7 ا‬e+f‫إ‬  $ git add README.txt  $ git status  On branch master  #  # Initial commit  #  # Changes to...
‫_,4ات‬I$‫ ا‬g2h   $ git commit -m Create a README   [master (root-commit) f0b65c3] Create a README    1 files changed, 1 i...
‫_,4ات‬I$‫ ا‬g2h        ‫ آ4 ؟‬b/) 7e+fsR +:A@ ‫ و‬README b/6‫ ا‬pe +<4,t M$ ‫)+ذا‬                       $ git status    ...
‫دع‬MI96‫7 إ$# ا‬e+fv‫ا‬                       $ git add README.txt INSTALL.txt                                           ...
‫_,,4ات‬I$‫ ا‬g2h    $ git commit -m "Add INSTALL and modified README"    master 74e8c51] Add INSTALL and modified README   ...
timeline‫ أو ال‬DB‫+ر‬I$‫90,& ا‬T     $ git log     commit 74e8c512b6596286741cefd79de67a568bd33a36     Author: tayeb83 <t...
: #/? pI/-‫ )4ا‬wZ:ZAB                       tayeb.merabti@gmail.com                               @tayebM                ...
Upcoming SlideShare
Loading in...5
×

Git introduction

156

Published on

مقدمة في الgit

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
156
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Git introduction"

  1. 1. Git‫)(& إ$# ال‬ ‫ا.-+-,+ت‬ 1samedi 16 février 13
  2. 2. ‫321 0/"م ا-,+*) ("&ا$#"ت‬ ‫ا$:987 2.1‬ ‫ا$:987 3.1‬ ‫)/2+ت و )0/(ات‬ ‫)/2+ت ا654وع‬ ‫ا$:987 0.2‬ ‫ال‪ VCS‬ا6;/,7‬ ‫)/2+ت ا654وع‬ ‫@+?(ة ا$=,+<+ت‬ ‫ا$:9‪ D‬ا$‪7AB(C‬‬ ‫7654‬ ‫ا-9 ال‪git‬‬‫31 ‪samedi 16 février‬‬
  3. 3. ‫321 0/"م ا-,+*) ("&ا$#"ت‬ ‫@+?(ة ا$=,+<+ت‬ 7BEF46‫ ا‬VCS‫ال‬‫8(م ج‬I9) ‫8(م أ‬I9) ‫8(م ب‬I9) 1:‫ ا<ز‬VCS‫,@? -#">=1 ال‬AB git‫ال‬ ‫8(م أ‬I9) 7?‫ز‬M6‫ ا‬VCS‫ال‬ ‫8(م ب‬I9) 4567 ‫8(م ج‬I9) git‫ا-9 ال‬samedi 16 février 13
  4. 4. git‫ة ال‬DE0 linux kernel‫٠654وع ال‬ 7,O,=P 7CB4QR ‫94?7 و‬R SOB‫ز‬MT ‫(ف‬V$٠ ‫=4ى‬F XB‫+ل )5+ر‬A;I-‫ ا‬S:ZAB٠ 4567 git‫ا-9 ال‬samedi 16 février 13
  5. 5. git‫,#@"ل ال‬F‫ا‬ 4)‫4 أوا‬Q- 7V[‫٠ وا‬ 7,)M-4$‫+ت ا‬V[‫ا‬M$‫( ) ا‬B(O$‫٠ ا‬ 7,9,]4$‫٠ ا$^2;7 ا‬ http://git-scm.com/ 4567 git‫ا-9 ال‬samedi 16 février 13
  6. 6. $ git help usage: 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 ... 4567 git‫ا-9 ال‬samedi 16 février 13
  7. 7. git 4)‫أ‬ $ git help config NAME 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] ... 4567 git‫ا-9 ال‬samedi 16 février 13
  8. 8. git‫ا:6اد ال‬ 4,,_I$+R `;$‫ ا‬S$ ) $ git config --global user.name "tayeb merabti" $ git config --global user.email tayeb.merabti@gmail.com &AOI96‫,& ا‬ABa‫ا‬ 4567 git‫ا-9 ال‬samedi 16 février 13
  9. 9. ‫,<دع‬I‫ا:6اد ا‬ $ mkdir my-repo $ cd my-repo $ git init Initialized empty Git repository in /Users/tayebmerabti/ Documents/TutorielCourse/gitCourse/my-repo/.git/ 4567 git‫ا-9 ال‬samedi 16 février 13
  10. 10. git‫? ال‬J 4@#-‫& ا‬KF b/6‫إ<5+ء ا‬ 4i‫(ون آ‬R b/6‫ا‬ ‫دع‬MI96‫ إ$# ا‬b/6‫7 ا‬e+f‫إ‬ b/A/$ ‫رة‬Ml m. (OI9) +Vn2h ‫رة و‬M^$‫+ط ا‬CI$‫ا‬ ‫_,4ات‬I$‫ ا‬g2h 4567 git‫ا-9 ال‬samedi 16 février 13
  11. 11. git‫? ال‬J 4@#-‫& ا‬KF b/6‫إ<5+ء ا‬ ‫دع‬MI96‫ إ$# ا‬b/6‫7 ا‬e+f‫إ‬ ‫_,4ات‬I$‫ ا‬g2h b/) pe 4,,_T ‫ و‬b/) ‫إ<5+ء‬ ‫دع‬MI96‫ إ$# ا‬q2/6‫7 ا‬e+f‫إ‬ ‫_,4ات‬I$‫ ا‬g2h 4567 git‫ا-9 ال‬samedi 16 février 13
  12. 12. README.txt b/6‫إ<5+ء ا‬ $ git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # b/6‫ا‬ # README.txt nothing added to commit but untracked files present (use "git add" to track) 4567 git‫ا-9 ال‬samedi 16 février 13
  13. 13. ‫دع‬MI96‫ إ$# ا‬b/6‫7 ا‬e+f‫إ‬ $ 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 # 4567 git‫ا-9 ال‬samedi 16 février 13
  14. 14. ‫_,4ات‬I$‫ ا‬g2h $ 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) 4567 git‫ا-9 ال‬samedi 16 février 13
  15. 15. ‫_,4ات‬I$‫ ا‬g2h ‫ آ4 ؟‬b/) 7e+fsR +:A@ ‫ و‬README b/6‫ ا‬pe +<4,t M$ ‫)+ذا‬ $ git status # On branch master # Changes not staged for commit: # # modified: README.txt # # Untracked files: # # INSTALL.txt no changes added to commit 4567 git‫ا-9 ال‬samedi 16 février 13
  16. 16. ‫دع‬MI96‫7 إ$# ا‬e+fv‫ا‬ $ 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 4567 git‫ا-9 ال‬samedi 16 février 13
  17. 17. ‫_,,4ات‬I$‫ ا‬g2h $ 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 4567 git‫ا-9 ال‬samedi 16 février 13
  18. 18. timeline‫ أو ال‬DB‫+ر‬I$‫90,& ا‬T $ git log commit 74e8c512b6596286741cefd79de67a568bd33a36 Author: tayeb83 <tayeb.merabti@gmail.com> Date: Fri Feb 15 22:26:20 2013 +0100 Add INSTALL and modified README commit f0b65c35f19af93610a726dc00e87e3030599935 Author: tayeb83 <tayeb.merabti@gmail.com> Date: Fri Feb 15 00:03:07 2013 +0100 Create a README 4567 git‫ا-9 ال‬samedi 16 février 13
  19. 19. : #/? pI/-‫ )4ا‬wZ:ZAB tayeb.merabti@gmail.com @tayebM 4567 git‫ا-9 ال‬samedi 16 février 13
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×