Your SlideShare is downloading. ×
  • Like
الدرس الثاني في الgit هو التهيئة و الرجوع الى الوراءالذي
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

الدرس الثاني في الgit هو التهيئة و الرجوع الى الوراءالذي

  • 87 views
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
87
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Git‫)(& إ$# ال‬ ‫ا$54321 وا$/.,ع إ$# ا$,راء‬ 1jeudi 21 février 13
  • 2. ‫)(& %$#"ى‬ *+,‫ا‬ $ git diff &() .% /0&1, diff --git a/INSTALL.txt b/INSTALL.txt index 45a1cdc..5a3fd2e 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,3 +1,3 @@ -INSTALL FILE FOR DTMDE ‫%. 43ف‬ +INSTALL FILE FOR TAYEB BLOG *5‫%. أ‬ 789% git‫ا<; ال‬jeudi 21 février 13
  • 3. $ git add INSTALL.txt $ git diff &() 9=">? @A$<‫19 ا‬B $ git add --staged C&A<‫ رؤ>/ ا‬FGH> FG<‫و‬ index bbf06f4..5a3fd2e 100644 --- a/INSTALL.txt /JB.K<‫/ ا‬LM#<.B /N‫.ر‬J% +++ b/INSTALL.txt @@ -1,3 +1,3 @@ -INSTALL FILE FOR DTMDE +INSTALL FILE FOR TAYEB BLOG 789% git‫ا<; ال‬jeudi 21 février 13
  • 4. $ git status ‫+* و‬O<‫<+1"دة إ<; ا‬ # On branch master /LM#<‫ا<(.ء ا‬ # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: INSTALL.txt *+,‫/ ا‬LM) ‫ا<(.ء‬ # INSTALL.txt $ git reset HEAD INSTALL.txt Unstaged changes after reset: M INSTALL.txt 789% git‫ا<; ال‬jeudi 21 février 13
  • 5. $ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: INSTALL.txt # $ git checkout -- INSTALL.txt $ git status # On branch master T#<‫7 ا<#(&ات ا‬V T(+) nothing to commit (working directory clean) @A4 &8‫3 أ‬W% ‫&أت‬X 789% git‫ا<; ال‬jeudi 21 février 13
  • 6. ‫)(& %$#"ى‬ *+,‫ا‬ @A$<‫7 ا‬YZ ‫7 ا<#(&ات‬V /LM#< $ git commit -a -m ‘INSTALL changed’ [master 7b8e5bc] INSTALL Changed 1 files changed, 1 insertions(+), 1 deletions(-) 789% git‫ا<; ال‬jeudi 21 février 13
  • 7. TN‫&ت أ‬V3) @A$<‫19 ا‬B "< ‫%.ذا‬ ‫ء آ8& ؟‬T^ @A4 _KN Commit &8`‫@ ا‬A$<‫ ا‬T(+) $ git reset -- soft HEAD^ $ git status # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: INSTALL.txt # 789% git‫ا<; ال‬jeudi 21 février 13
  • 8. /+Ha T0 *+% @A4 .WKN "< ‫%.ذا‬ ‫@ ا`8&ة‬A$<‫ا‬ ‫@ %1&وف‬A4 &8` /0.5‫ا‬ $ git add ziada.txt $ git commit --amend -m ‘Change install and ziada.txt’ [master 3e8f8c5] Change install and ziada.txt 2 files changed, 2 insertions(+), 1 deletions(-) create mode 100644 ziada.txt @A$<‫ ا‬b+1) .W<9B 789% git‫ا<; ال‬jeudi 21 février 13
  • 9. 1K4L‫وا)/ ا‬B‫ ا‬M9I$ NO8) $ git reset --soft HEAD^ ‫3/، )@ ?>= ا$5<3/ات‬B‫>= ا‬C$‫ء ا‬D<$‫ا‬ $ git commit --amend -m ‘(6(. 7389:’ /3B‫>= ا‬C$‫ ا‬EF /33<: $ git reset --hard HEAD^ ‫3/ة‬B‫& ا$5<3/ات ا‬H ‫>= و‬C$‫ء ا‬D<$‫ا‬ $ git reset --hard HEAD^^ /3B‫& ا‬IJ ‫& ا$5<3/ات‬H ‫>= و‬C$‫ء ا‬D<$‫ا‬ 789% git‫ا<; ال‬jeudi 21 février 13
  • 10. : #8P E58Q‫ )/ا‬RSTSK6 tayeb.merabti@gmail.com @tayebM 789% git‫ا<; ال‬jeudi 21 février 13