いつやるの?Git入門

  • 215,057 views
Uploaded on

↓のv1.1.0版の方が、より見やすく改善したものになってます! …

↓のv1.1.0版の方が、より見やすく改善したものになってます!
http://www.slideshare.net/matsukaz/git-28304397

社内で開催したGit勉強会の資料。
SVNとの比較や、Gitの内部構造と各コマンドの関係、ブランチやリモートリポジトリとの関係を分かりやすく説明したつもり。

こういう資料に対する投げ銭的なのがどうなるのか気になっていたので、もしよろしければ・・・!15円からできるソーシャルカンパサービスだそうですm(_ _)m
http://kampa.me/t/dev

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
215,057
On Slideshare
0
From Embeds
0
Number of Embeds
92

Actions

Shares
Downloads
1,000
Comments
9
Likes
468

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. file2file1 dir1file3
  • 2. git init
  • 3. file2file1 dir1file3git init
  • 4. git initfile2file1 dir1file3
  • 5. git add <filepattern>...
  • 6. file2file1 dir1file3git add file1 dir1/file2
  • 7. file2file1file2file1 dir1file3git add file1 dir1/file2dir1
  • 8. git commit -m <msg>
  • 9. file2file1file2file1 dir1file3git commit -m ‘コミットするよ。’dir1
  • 10. git commit -m ‘コミットするよ。’file21a401efile1file2file1file2file1 dir1file3dir1 dir1
  • 11. file21a401efile1file2file1file2file1’ dir1file3dir1 dir1
  • 12. file21a401efile1file2file1file2file1’ dir1file3git add .dir1 dir1
  • 13. file21a401efile1file2file1’file2file1’ dir1file3git add .file3dir1 dir1
  • 14. file21a401efile1file2file1’file2file1’ dir1file3 file3git commit -m ‘もっとコミット。’dir1 dir1
  • 15. file21a401efile1510db8file3file1’file2file1’file3file2file1’ dir1file3git commit -m ‘もっとコミット。’dir1 dir1
  • 16. file21a401efile1510db8file3file1’file2file1’file3file2file1’ dir1file3git commit -m ‘もっとコミット。’dir1 dir1
  • 17. git rm <file>...
  • 18. file21a401efile1510db8file3file1’file2file1’file3file2file1’ dir1file3git rm dir1/file2dir1 dir1
  • 19. file21a401efile1510db8file3file1’file1’file3file1’ dir1file3git rm dir1/file2dir1 dir1
  • 20. file21a401efile1510db8file3file1’file1’file3file1’ dir1file3git commit -m ‘削除情報をコミット。’dir1 dir1
  • 21. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3git commit -m ‘削除情報をコミット。’dir1 dir1
  • 22. git reset HEAD <file>
  • 23. file21a401efile1510db8 6ccfdafile3file1’file1’file3’file1’ dir1file3’dir1 dir1
  • 24. file21a401efile1510db8 6ccfdafile3file1’file1’file3’file1’ dir1file3’git reset HEAD dir1/file3dir1 dir1
  • 25. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3’git reset HEAD dir1/file3dir1 dir1
  • 26. git checkout -- <file>
  • 27. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3’dir1 dir1
  • 28. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3’git checkout -- dir1/file3dir1 dir1
  • 29. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3git checkout -- dir1/file3dir1 dir1
  • 30. git mv
  • 31. git reset --<mode> <commit>
  • 32. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3git reset --hard HEAD^dir1 dir1
  • 33. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3git reset --hard HEAD^file2file2dir1 dir1
  • 34. git status
  • 35. git log
  • 36. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3dir1 dir1
  • 37. file21a401efile1510db8 6ccfdafile3file1’file1’file3file1’ dir1file3dir1 dir1
  • 38. A B
  • 39. A B
  • 40. A B C
  • 41. A B C
  • 42. A B C D
  • 43. A B C DE
  • 44. A B C DE
  • 45. A B C DE
  • 46. A B C DEF
  • 47. A B C DEF GH
  • 48. A B C DE
  • 49. A B C DE
  • 50. A B C DE’E
  • 51. A B C DE’
  • 52. A B C DE’FG
  • 53. Afile1Bfile1’file1’file1’
  • 54. Afile1Bfile1’file1’file1’
  • 55. git branch [<old>] <new>
  • 56. git branch developAfile1Bfile1’file1’file1’
  • 57. git branch developAfile1Bfile1’file1’file1’
  • 58. git checkout <branch>
  • 59. git checkout developAfile1Bfile2file1’Cfile1’file1’
  • 60. git checkout developAfile1Bfile2file1’Cfile2file2file1 file1
  • 61. git checkout -b <new> <old>
  • 62. git checkout -b <new> <old>git checkout <new>git branch [<old>] <new>
  • 63. git merge <branch>
  • 64. git merge developfile1’file1’Afile1Bfile2file1’C
  • 65. git merge developfile2file1’file2file1’Afile1Bfile2file1’DC
  • 66. git rebase <branch>
  • 67. Agit rebase masterfile1file2file2file1file1BCfile2file1’
  • 68. Agit rebase masterBC’file2file1file1’file2file2file1’file1’
  • 69. A B
  • 70. A BA B
  • 71. A BA B
  • 72. A BA B
  • 73. A B CA B
  • 74. A B CA B C
  • 75. A B CA B C
  • 76. A B CA B
  • 77. A B CA B C
  • 78. A B CA B C D
  • 79. A B C DA B C D
  • 80. A B C D FA B C D E
  • 81. A B C D FA B C D E GF
  • 82. A B C D F GA B C D E GFE
  • 83. A B C D FA B C D E
  • 84. A B C D FA B C D FE E’
  • 85. A B C D F E’A B C D F E’
  • 86. A B C E FD G HA B C E F ID G
  • 87. git clone <url>
  • 88. A Bgit clone git@github.com:a/b.git
  • 89. file1’file1’A Bfile1file1’A Bgit clone git@github.com:a/b.git
  • 90. git push <remote> <refspec>
  • 91. file1’file1’A Bfile1file1’A B
  • 92. file1’file1’A Bfile2file1file1’A B
  • 93. file1’file1’A Bfile2 file2file1file1’A Bgit add file2
  • 94. file1’file1’A Bfile2 file2file1file1’A B Cfile2git commit -m ‘add file2’
  • 95. file1’file1’A B Cfile1file1’A B Cfile2file2 file2git push origin master
  • 96. git fetch <remote> <refspec>
  • 97. file1’file1’A B Cgit fetch origin masterfile1file1’A B
  • 98. file1’file1’A B Cgit fetch origin masterfile1file1’A B Cfile2
  • 99. git pull <remote> <refspec>git merge <branch>git fetch <remote> <refspec>
  • 100. file2file2A B Cgit pull origin masterfile1file1’A BDfile2
  • 101. file1file1’A B CDEA B Cgit pull origin masterfile2file3file3file3file2file2
  • 102. git pull <remote> <refspec> --rebasegit rebase <branch>git fetch <remote> <refspec>
  • 103. file2file2A B Cgit pull origin master --rebasefile1file1’A BDfile2
  • 104. file2file2A B Cgit pull origin master --rebasefile1file1’A BD’file2Cfile3file3file3
  • 105. テキスト