Tuesday, June 26, 2012
Tuesday, June 26, 2012
perché git?                         ✤   branching                         ✤   velocità                         ✤   offline ...
prima release 7 agosto 2005Tuesday, June 26, 2012
1,740,288 utenti           3,067,552 repositoryTuesday, June 26, 2012
https://github.com/php                         https://github.com/zendframework                         https://github.com...
git cloneTuesday, June 26, 2012
git clone                         scaricare il codice da un repositoryTuesday, June 26, 2012
git cloneTuesday, June 26, 2012
git clone                         la working copy è anch’essa un repository!Tuesday, June 26, 2012
git clone                         la working copy è anch’essa un repository!Tuesday, June 26, 2012
git init                         inizializzazione di un repository gitTuesday, June 26, 2012
git init                         inizializzazione di un repository gitTuesday, June 26, 2012
.git                                            git init                   |-- HEAD                   |-- branches        ...
git status                          aggiunta di contenutoTuesday, June 26, 2012
git status                          aggiunta di contenutoTuesday, June 26, 2012
git status                          aggiunta di contenutoTuesday, June 26, 2012
git add                         aggiunta di contenutoTuesday, June 26, 2012
git add                         aggiunta di contenutoTuesday, June 26, 2012
staging area                         aggiunta di contenutoTuesday, June 26, 2012
staging area                         aggiunta di contenutoTuesday, June 26, 2012
staging areaTuesday, June 26, 2012
git commitTuesday, June 26, 2012
git config --global color.ui autoTuesday, June 26, 2012
Tuesday, June 26, 2012
script shell prompt stato repo                         es:   https://github.com/robbyrussell/oh-my-zsh/Tuesday, June 26, 2...
git commitTuesday, June 26, 2012
# commit                         filesystem checksumTuesday, June 26, 2012
nuova modifica + nuovo fileTuesday, June 26, 2012
nuova modifica + nuovo fileTuesday, June 26, 2012
Tuesday, June 26, 2012
Tuesday, June 26, 2012
branch                         master : default branchTuesday, June 26, 2012
branch                         master : default branchTuesday, June 26, 2012
branch                         master : default branchTuesday, June 26, 2012
git branch <name>                         creazione nuovo branchTuesday, June 26, 2012
branch loginTuesday, June 26, 2012
git log --pretty=oneline                            branch login altre 2 commitTuesday, June 26, 2012
git config --global alias.slog log --pretty=onelineTuesday, June 26, 2012
master branch rimane invariatoTuesday, June 26, 2012
master branch rimane invariatoTuesday, June 26, 2012
modifico master branchTuesday, June 26, 2012
git merge  integro le modifiche del branch login con il branch masterTuesday, June 26, 2012
git graph logTuesday, June 26, 2012
git config --global alias.glog  ‘log --graph --pretty=oneline --abbrev-commit’Tuesday, June 26, 2012
git merge                             master                                      loginTuesday, June 26, 2012
git merge                                            master                                    login                      ...
git merge                          non fast-forwardTuesday, June 26, 2012
git resetTuesday, June 26, 2012
git resetTuesday, June 26, 2012
git reset<versione> 1) sposta HEAD alla versione (si ferma se si specifica l’opzione --soft) 2) poi, sposta la index alla v...
git merge                           fast-forwardTuesday, June 26, 2012
git merge                           fast-forwardTuesday, June 26, 2012
git merge                           fast-forwardTuesday, June 26, 2012
git merge                           fast-forwardTuesday, June 26, 2012
git reflogTuesday, June 26, 2012
git rebasetorniamo al punto in cui abbiamo fatto modifiche sia sul branchmaster, sia sul branch login                      ...
git rebaseTuesday, June 26, 2012
git rebase                            conflitto!Tuesday, June 26, 2012
git rebase                         presente su master                                       presente su loginTuesday, June...
git rebase                         teniamo entrambe le modificheTuesday, June 26, 2012
git rebaseTuesday, June 26, 2012
git rebase                          Fast Forward!Tuesday, June 26, 2012
git rebase                          Fast Forward!Tuesday, June 26, 2012
git rebase                               login                               masterTuesday, June 26, 2012
git rebase                              login                                      masterTuesday, June 26, 2012
git rebase                                       login                              masterTuesday, June 26, 2012
repository remotiTuesday, June 26, 2012
repository remoti                 copio il mio repository locale in remoto, originTuesday, June 26, 2012
Tuesday, June 26, 2012
git push      sincronizzo il mio repository locale con quello remotoTuesday, June 26, 2012
Corso GIT per sviluppatori (e non solo)                                                   Sedi del corso:                2...
Grazie!                         @cirpo                         ac@ideato.itTuesday, June 26, 2012
risorse                         http://git-scm.com/book                         http://git-scm.com/Tuesday, June 26, 2012
Upcoming SlideShare
Loading in …5
×

Introduzione a GIT - Webinar Zend

1,514 views

Published on

Webinar Zend, http://www.zend.com/it/company/news/event/1081_webinar-introduzione-a-git

Introduzione a GIT, ai comandi principali, qualche trucchetto e best practice

Published in: Technology
3 Comments
10 Likes
Statistics
Notes
  • Ho risolto utilizzando il comando 'unsetopt correct_all' che però penso disabiliti tutte le correzioni
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Ciao Alessandro,
    sono uno studente di Design, ma ho deciso di imparare Git per migliorare il mio workflow nella gestione di progetti personali/professionali. La tua presentazione mi ha aiutato molto soprattutto per quanto riguarda le impostazioni del terminale (sono passato da bash a zsh con 'ohmyzsh'), ma quando eseguo un comando di Git, banalissimo, come 'git config --global user.name' l'autocorrect si incasina e dà il seguente consiglio:

    'correct 'config' to '.config' [nyae]?'

    Che è decisamente superfluo e soprattutto scorretto. Per caso ti sei imbattuto in problemi simili? (se può servire, il mio sistema è Mountain Lion ed ho seguito questa guida: http://seanmmcdaniel.com/2011/09/zsh-on-os-x/ fino al punto 4)

    Per i designer ci sarebbe anche il client Github con relativa GUI, ma mi sembra un po' limitante.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Bellissimo e utilissimo! Grazie! Avrei proprio voluto vederla live.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
1,514
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
17
Comments
3
Likes
10
Embeds 0
No embeds

No notes for slide

Introduzione a GIT - Webinar Zend

  1. 1. Tuesday, June 26, 2012
  2. 2. Tuesday, June 26, 2012
  3. 3. perché git? ✤ branching ✤ velocità ✤ offline ✤ branching === flessibilità ✤ GitHubTuesday, June 26, 2012
  4. 4. prima release 7 agosto 2005Tuesday, June 26, 2012
  5. 5. 1,740,288 utenti 3,067,552 repositoryTuesday, June 26, 2012
  6. 6. https://github.com/php https://github.com/zendframework https://github.com/symfony https://github.com/WordPress https://github.com/jquery e tanti altri...Tuesday, June 26, 2012
  7. 7. git cloneTuesday, June 26, 2012
  8. 8. git clone scaricare il codice da un repositoryTuesday, June 26, 2012
  9. 9. git cloneTuesday, June 26, 2012
  10. 10. git clone la working copy è anch’essa un repository!Tuesday, June 26, 2012
  11. 11. git clone la working copy è anch’essa un repository!Tuesday, June 26, 2012
  12. 12. git init inizializzazione di un repository gitTuesday, June 26, 2012
  13. 13. git init inizializzazione di un repository gitTuesday, June 26, 2012
  14. 14. .git git init |-- HEAD |-- branches |-- config |-- description |-- hooks | |-- applypatch-msg.sample | |-- commit-msg.sample | |-- post-commit.sample | |-- post-receive.sample | |-- post-update.sample | |-- pre-applypatch.sample | |-- pre-commit.sample | |-- pre-rebase.sample | |-- prepare-commit-msg.sample | `-- update.sample |-- info | `-- exclude |-- objects | |-- info | `-- pack `-- refs |-- heads `-- tags contenuto della directory .git 9 directories, 14 filesTuesday, June 26, 2012
  15. 15. git status aggiunta di contenutoTuesday, June 26, 2012
  16. 16. git status aggiunta di contenutoTuesday, June 26, 2012
  17. 17. git status aggiunta di contenutoTuesday, June 26, 2012
  18. 18. git add aggiunta di contenutoTuesday, June 26, 2012
  19. 19. git add aggiunta di contenutoTuesday, June 26, 2012
  20. 20. staging area aggiunta di contenutoTuesday, June 26, 2012
  21. 21. staging area aggiunta di contenutoTuesday, June 26, 2012
  22. 22. staging areaTuesday, June 26, 2012
  23. 23. git commitTuesday, June 26, 2012
  24. 24. git config --global color.ui autoTuesday, June 26, 2012
  25. 25. Tuesday, June 26, 2012
  26. 26. script shell prompt stato repo es: https://github.com/robbyrussell/oh-my-zsh/Tuesday, June 26, 2012
  27. 27. git commitTuesday, June 26, 2012
  28. 28. # commit filesystem checksumTuesday, June 26, 2012
  29. 29. nuova modifica + nuovo fileTuesday, June 26, 2012
  30. 30. nuova modifica + nuovo fileTuesday, June 26, 2012
  31. 31. Tuesday, June 26, 2012
  32. 32. Tuesday, June 26, 2012
  33. 33. branch master : default branchTuesday, June 26, 2012
  34. 34. branch master : default branchTuesday, June 26, 2012
  35. 35. branch master : default branchTuesday, June 26, 2012
  36. 36. git branch <name> creazione nuovo branchTuesday, June 26, 2012
  37. 37. branch loginTuesday, June 26, 2012
  38. 38. git log --pretty=oneline branch login altre 2 commitTuesday, June 26, 2012
  39. 39. git config --global alias.slog log --pretty=onelineTuesday, June 26, 2012
  40. 40. master branch rimane invariatoTuesday, June 26, 2012
  41. 41. master branch rimane invariatoTuesday, June 26, 2012
  42. 42. modifico master branchTuesday, June 26, 2012
  43. 43. git merge integro le modifiche del branch login con il branch masterTuesday, June 26, 2012
  44. 44. git graph logTuesday, June 26, 2012
  45. 45. git config --global alias.glog ‘log --graph --pretty=oneline --abbrev-commit’Tuesday, June 26, 2012
  46. 46. git merge master loginTuesday, June 26, 2012
  47. 47. git merge master login non fast-forwardTuesday, June 26, 2012
  48. 48. git merge non fast-forwardTuesday, June 26, 2012
  49. 49. git resetTuesday, June 26, 2012
  50. 50. git resetTuesday, June 26, 2012
  51. 51. git reset<versione> 1) sposta HEAD alla versione (si ferma se si specifica l’opzione --soft) 2) poi, sposta la index alla versione (si ferma almeno che si specifichi l’opzione --hard) 3) poi, sposta la working copy alla versione specificataTuesday, June 26, 2012
  52. 52. git merge fast-forwardTuesday, June 26, 2012
  53. 53. git merge fast-forwardTuesday, June 26, 2012
  54. 54. git merge fast-forwardTuesday, June 26, 2012
  55. 55. git merge fast-forwardTuesday, June 26, 2012
  56. 56. git reflogTuesday, June 26, 2012
  57. 57. git rebasetorniamo al punto in cui abbiamo fatto modifiche sia sul branchmaster, sia sul branch login MAnon abbiamo ancora fatto il merge (facendolo avremmo un nuovocommit -> no fast forward)Tuesday, June 26, 2012
  58. 58. git rebaseTuesday, June 26, 2012
  59. 59. git rebase conflitto!Tuesday, June 26, 2012
  60. 60. git rebase presente su master presente su loginTuesday, June 26, 2012
  61. 61. git rebase teniamo entrambe le modificheTuesday, June 26, 2012
  62. 62. git rebaseTuesday, June 26, 2012
  63. 63. git rebase Fast Forward!Tuesday, June 26, 2012
  64. 64. git rebase Fast Forward!Tuesday, June 26, 2012
  65. 65. git rebase login masterTuesday, June 26, 2012
  66. 66. git rebase login masterTuesday, June 26, 2012
  67. 67. git rebase login masterTuesday, June 26, 2012
  68. 68. repository remotiTuesday, June 26, 2012
  69. 69. repository remoti copio il mio repository locale in remoto, originTuesday, June 26, 2012
  70. 70. Tuesday, June 26, 2012
  71. 71. git push sincronizzo il mio repository locale con quello remotoTuesday, June 26, 2012
  72. 72. Corso GIT per sviluppatori (e non solo) Sedi del corso: 20 luglio Milano 31 agosto Roma Brescia 13 settembre Cesena school.ideato.it/contattiTuesday, June 26, 2012
  73. 73. Grazie! @cirpo ac@ideato.itTuesday, June 26, 2012
  74. 74. risorse http://git-scm.com/book http://git-scm.com/Tuesday, June 26, 2012

×