Upgrade to Pro — share decks privately, control downloads, hide ads and more …

مدخل إلى الgit

Avatar for tayeb83 tayeb83
February 22, 2013

مدخل إلى الgit

مدخل إلى الgit

Avatar for tayeb83

tayeb83

February 22, 2013
Tweet

Other Decks in Technology

Transcript

  1. 4567 gitلا 9-ا ت"#$ا&'"( )*+,-ا م"/0 123 تا(/0) و ت+2/)

    عو456ا ت+2/) 1.2 789:$ا 1.3 789:$ا 2.0 789:$ا 7,/;6ا VCSلا عو456ا ت+2/) ت+<+,=$ا ة(?+@ 7AB(C$ا D9:$ا samedi 16 février 13
  2. 4567 gitلا 9-ا 7BEF46ا VCSلا ت+<+,=$ا ة(?+@ أ م(8I9) ب

    م(8I9) ج م(8I9) ت"#$ا&'"( )*+,-ا م"/0 123 أ م(8I9) ب م(8I9) ج م(8I9) 7?زM6ا VCSلا 1:ز<'ا VCSلا 1=>"#- ?@,AB gitلا samedi 16 février 13
  3. 4567 gitلا 9-ا gitلا ةDE0 linux kernelلا عو456٠ 7,O,=P 7CB4QR

    و 7?49R SOBزMT ف(V$٠ ى4=F XBر+5) ل+A;I-ا S:ZAB٠ samedi 16 février 13
  4. 4567 gitلا 9-ا gitلا ل"@#,Fا 4)اوأ 4Q- 7V[او ٠ 7,)M-4$ا

    ت+V[اM$ا \) (B(O$ا ٠ 7,9,]4$ا 7;2^$ا ٠ http://git-scm.com/ samedi 16 février 13
  5. 4567 gitلا 9-ا $ 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 ... samedi 16 février 13
  6. 4567 gitلا 9-ا $ 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] ... git 4)أ samedi 16 février 13
  7. 4567 gitلا 9-ا $ git config --global user.name "tayeb merabti"

    $ git config --global user.email [email protected] 4,,_I$+R `;$ا S$ \) &AOI96ا &,ABaا gitلا دا6:ا samedi 16 février 13
  8. 4567 gitلا 9-ا $ mkdir my-repo $ cd my-repo $

    git init Initialized empty Git repository in /Users/tayebmerabti/ Documents/TutorielCourse/gitCourse/my-repo/.git/ عد<,I'ا دا6:ا samedi 16 février 13
  9. 4567 gitلا 9-ا gitلا ?J 4@#-ا &KF b/6ا ء+5<إ عدMI96ا

    #$إ b/6ا 7e+fإ تا4,_I$ا g2h 4iآ نو(R b/6ا b/A/$ ةرMl m'. (OI9) +Vn2h و ةرM^$ا ط+CI$ا samedi 16 février 13
  10. 4567 gitلا 9-ا gitلا ?J 4@#-ا &KF b/6ا ء+5<إ عدMI96ا

    #$إ b/6ا 7e+fإ تا4,_I$ا g2h b/) pe 4,,_T و b/) ء+5<إ عدMI96ا #$إ q2/6ا 7e+fإ تا4,_I$ا g2h samedi 16 février 13
  11. 4567 gitلا 9-ا $ git status # On branch master

    # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # README.txt nothing added to commit but untracked files present (use "git add" to track) README.txt b/6ا ء+5<إ b/6ا samedi 16 février 13
  12. 4567 gitلا 9-ا $ 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 # عدMI96ا #$إ b/6ا 7e+fإ samedi 16 février 13
  13. 4567 gitلا 9-ا $ 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 تا4,_I$ا g2h $ 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
  14. 4567 gitلا 9-ا تا4,_I$ا g2h $ git status # On

    branch master # Changes not staged for commit: # # modified: README.txt # # Untracked files: # # INSTALL.txt no changes added to commit ؟ 4'آ b/) 7e+fsR +:A@ و README b/6ا pe +<4,t M$ اذ+) samedi 16 février 13
  15. 4567 gitلا 9-ا عدMI96ا #$إ 7e+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 samedi 16 février 13
  16. 4567 gitلا 9-ا تا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 samedi 16 février 13
  17. 4567 gitلا 9-ا timelineلا وأ DBر+I$ا &,09T $ git log

    commit 74e8c512b6596286741cefd79de67a568bd33a36 Author: tayeb83 <[email protected]> Date: Fri Feb 15 22:26:20 2013 +0100 Add INSTALL and modified README commit f0b65c35f19af93610a726dc00e87e3030599935 Author: tayeb83 <[email protected]> Date: Fri Feb 15 00:03:07 2013 +0100 Create a README samedi 16 février 13