SlideShare a Scribd company logo
1 of 10
Download to read offline
Git‫)('& إ$# ال‬
                       ‫ا$54321 وا$/.,ع إ$# ا$,راء‬




                                     1
jeudi 21 février 13
‫)(''& %$#"ى‬
                                              *+,‫ا‬


  $ 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
$ 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<‫/ ا‬L'M#<.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
$ git status                                   ‫+* و‬O<‫<+1"دة إ<; ا‬
  # On branch master                                /L'M#<‫ا<(.ء ا‬
  # Changes to be committed:
  # (use "git reset HEAD <file>..." to unstage)
  #
  #	

 modified: INSTALL.txt                                           *+,‫/ ا‬L'M) ‫ا<(.ء‬
  #                                                                   INSTALL.txt



  $ git reset HEAD INSTALL.txt
  Unstaged changes after reset:
  M	

 INSTALL.txt




                                                                                           789%
                                                                                         git‫ا<; ال‬

jeudi 21 février 13
$ 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
‫)(''& %$#"ى‬
                                             *+,‫ا‬
                                                        @A$<‫7 ا‬YZ ‫7 ا<#('&ات‬V /L'M#<



  $ git commit -a -m ‘INSTALL changed’
  [master 7b8e5bc] INSTALL Changed
   1 files changed, 1 insertions(+), 1 deletions(-)




                                                                                    789%
                                                                                  git‫ا<; ال‬

jeudi 21 février 13
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
/'+Ha T0 *+% @A4 .W'KN "< ‫%.ذا‬
                                       ‫@ ا`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
1K4L‫وا)/ ا‬B‫ ا‬M9I$ NO8)

   $ git reset --soft HEAD^ ‫'3/، )@ ?>= ا$5<3/ات‬B‫>= ا‬C$‫ء ا‬D<$‫ا‬

   $ git commit --amend -m ‘(6(. 7389:’ /3'B‫>= ا‬C$‫ ا‬EF /33<:

   $ git reset --hard HEAD^ ‫'3/ة‬B‫& ا$5<3/ات ا‬H ‫>= و‬C$‫ء ا‬D<$‫ا‬

   $ git reset --hard HEAD^^ /3'B‫& ا‬IJ ‫& ا$5<3/ات‬H ‫>= و‬C$‫ء ا‬D<$‫ا‬




                                                                   789%
                                                                 git‫ا<; ال‬

jeudi 21 février 13
: #8P E58Q‫ )/ا‬RSTSK6
                      tayeb.merabti@gmail.com
                              @tayebM




                                                  789%
                                                git‫ا<; ال‬

jeudi 21 février 13

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

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

  • 1. Git‫)('& إ$# ال‬ ‫ا$54321 وا$/.,ع إ$# ا$,راء‬ 1 jeudi 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<‫/ ا‬L'M#<.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 /L'M#<‫ا<(.ء ا‬ # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: INSTALL.txt *+,‫/ ا‬L'M) ‫ا<(.ء‬ # 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 /L'M#< $ 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 .W'KN "< ‫%.ذا‬ ‫@ ا`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:’ /3'B‫>= ا‬C$‫ ا‬EF /33<: $ git reset --hard HEAD^ ‫'3/ة‬B‫& ا$5<3/ات ا‬H ‫>= و‬C$‫ء ا‬D<$‫ا‬ $ git reset --hard HEAD^^ /3'B‫& ا‬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