ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
?
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
?
?
$ sudo apt-get install git
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
?
?
master
?
b026 26ab 6d7f 48a2
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
$ mkdir dir
$ git init
$ echo hello > bar.txt
$ git add bar.txt
$ git commit -m "Initial commit"
$ echo happy >> bar.txt
?
HEAD
$ git add bar.txt
?
HEAD
$ echo sad >> bar.txt
?
HEAD
?
$ git commit -m "Initial commit"
?
?
HEAD
$ git show HEAD
?
HEAD
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
master
b026 26ab 6d7f 48a2
HEAD
master
b026 26ab 6d7f 48a2
HEAD
HEAD
$ git checkout HEAD^^ (or git checkout 26ab)
master
b026 26ab 6d7f 48a2
HEAD
$ cat bar.txt # time travel!!
master
b026 26ab 6d7f 48a2
HEAD
HEAD
$ git checkout master
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ
?
? ?
¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ

More Related Content

¤Ê¤ó¤Á¤ã¤Ã¤Æ³Ò¾±³ÙÈëÃÅ