いつやるの?Git入門
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

いつやるの?Git入門

on

  • 200,646 views

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

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

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

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

Statistics

Views

Total Views
200,646
Views on SlideShare
52,552
Embed Views
148,094

Actions

Likes
441
Downloads
946
Comments
9

89 Embeds 148,094

http://www.find-job.net 54533
http://programmerbox.com 53745
http://morizyun.github.io 22955
http://nanapi.jp 4961
http://kesin.hatenablog.com 2268
http://bikkuri.me 2209
http://d.hatena.ne.jp 2025
http://amewiki.cadc.cyberagent.local 1022
http://blog.livedoor.jp 438
http://121.83.238.184 312
http://localhost 262
http://pmsserver 247
http://keikanri.com 244
http://www.advertimes.com 231
http://jabropt.hatenablog.com 227
https://twitter.com 222
http://of.studio23c.com 208
http://bao-bao.info 200
http://feedly.com 190
http://find-job.net 171
http://hajipion.com 162
http://www.studytech.jp 115
http://timeleap.info 104
http://webcache.googleusercontent.com 85
http://cloud.feedly.com 82
http://on-your-mark-i.blogspot.jp 73
http://tc-redmine.tky.nri-net.com 69
https://mj89sp3sau2k7lj1eg3k40hkeppguj6j-a-sites-opensocial.googleusercontent.com 67
http://syoiti.blogspot.jp 58
http://source.hatenadiary.jp 45
http://www.google.co.jp 43
http://likebutton-memo.tumblr.com 43
http://kesin-test.hatenablog.com 40
http://notes.shuntak.net 39
https://cybozulive.com 37
https://www.google.co.jp 35
http://creive.me 28
http://morizyun.github.io.dev 27
http://ja-ico.com 26
https://wiki.t-ree.com 25
http://s.deeeki.com 22
http://hatebutv.com 16
http://feeds.feedburner.com 14
http://e-mon.github.io 13
http://digg.com 12
http://halbappie.blogspot.jp 11
http://www.feedspot.com 10
https://www.chatwork.com 10
http://plus.url.google.com 10
http://133.50.220.25 7
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

15 of 9 Post a comment

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

いつやるの?Git入門 Presentation 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. テキスト