SlideShare una empresa de Scribd logo
1 de 99
Descargar para leer sin conexión
TDDBC Tokyo 1.7 for PHP
            2011-08-21
           @madapaja
<   ><   >
<   ><   >
<   ><   >
<   ><   >
5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a



blob 956



<?php

namespace Xanadu;

class Controller
{
    private $name;
        :
        :
5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a



blob 956



<?php

namespace Xanadu;

class Controller
{
    private $name;
        :
        :
5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a



blob 956



<?php

namespace Xanadu;

class Controller
{
    private $name;
        :
        :
a7e52bd45207ff7d202125b5eab2bdf172c506e9



tree 42



100644 blob 5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a    Controller.php
a7e52bd45207ff7d202125b5eab2bdf172c506e9



  tree 42
mode

  100644 blob 5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a    Controller.php
a7e52bd45207ff7d202125b5eab2bdf172c506e9



  tree 42
mode

  100644 blob 5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a    Controller.php
a7e52bd45207ff7d202125b5eab2bdf172c506e9



  tree 42
mode

  100644 blob 5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a    Controller.php
a7e52bd45207ff7d202125b5eab2bdf172c506e9



  tree 42
mode

  100644 blob 5ae168cf492bead24f9c24319e3ef2ba3d5b8f3a    Controller.php
54be572c17595e83dd84bbb14cae7edb9dd65a18



commit 172



tree a7e52bd45207ff7d202125b5eab2bdf172c506e9
author madapaja <iwasaki@cresc.com> 1313731598 +0900
committer madapaja <iwasaki@cresc.com> 1313731598 +0900

my first commit
$ git tag stable-1
checkout
checkout
checkout




           add
checkout




                    add




commit
checkout




           add
checkout




           add
checkout




                    add




commit
checkout




                    add




commit
checkout




           add
checkout




           add
checkout




           add




           add
checkout




                    add




                    add


commit
$ cd path/to/project
$ git init
$ cd path/to/project
$ git init




$ git clone git://path/to/project
$ cd project
$ git add target.php

$ git add -u         
$ git add target.php

$ git add -u         


$ git rm --cached target.php 

$ git rm target.php
$ git add target.php

$ git add -u         


$ git rm --cached target.php 

$ git rm target.php


$ git status
$ git add target.php

$ git add -u         


$ git rm --cached target.php 

$ git rm target.php


$ git status


$ git diff
$ git add target.php

$ git add -u         


$ git rm --cached target.php 

$ git rm target.php


$ git status


$ git diff


$ git checkout target.php
$ git add target.php

$ git add -u         


$ git rm --cached target.php 

$ git rm target.php


$ git status


$ git diff


$ git checkout target.php


$ git reset HEAD target.php
$ git diff --cached
$ git diff --cached



$ git commit
$ git diff --cached



$ git commit




$ git commit --amend
$ git diff --cached



$ git commit




$ git commit --amend



$ git reset --soft HEAD^
$ git diff HEAD
$ git diff HEAD


git add -u && git commit

$ git commit -a
$ git diff HEAD


git add -u && git commit

$ git commit -a



$ git revert a5102ef4
$ git diff HEAD


git add -u && git commit

$ git commit -a



$ git revert a5102ef4



$ git reset --hard HEAD^
$ git checkout master
$ git checkout master



git branch branch1 && git checkout branch1

$ git checkout -b branch1
$ git checkout master



git branch branch1 && git checkout branch1

$ git checkout -b branch1



$ git merge new_function


$ git merge --no-commit new_function
$ git log
$ git log


$ git diff HEAD^..HEAD
$ git log


$ git diff HEAD^..HEAD


$ git branch
$ git log


$ git diff HEAD^..HEAD


$ git branch


$ git branch experimental
$ git log


$ git diff HEAD^..HEAD


$ git branch


$ git branch experimental


$ git branch -d experimental
$ git branch -D experimental
$ git branch -r
$ git branch -r



$ git fetch origin
$ git branch -r



$ git fetch origin



$ git merge origin/master
$ git branch -r



$ git fetch origin



$ git merge origin/master


 git fetch origin && git merge origin/master
$ git pull origin master
$ git branch -r



$ git fetch origin



$ git merge origin/master


 git fetch origin && git merge origin/master
$ git pull origin master



$ git push origin :experimental
$ git branch -r



$ git fetch origin



$ git merge origin/master


 git fetch origin && git merge origin/master
$ git pull origin master



$ git push origin :experimental


$ git push origin master
Gitのおさらい
Gitのおさらい

Más contenido relacionado

Destacado

Reference Guide to International Space Station
Reference Guide to International Space StationReference Guide to International Space Station
Reference Guide to International Space Station
Champs Elysee Roldan
 
Diapo stage etranger Bac pro Agri 2010
Diapo stage etranger Bac pro Agri 2010Diapo stage etranger Bac pro Agri 2010
Diapo stage etranger Bac pro Agri 2010
mfrmorlaix
 
Spanish 3 Grammar Book
Spanish 3 Grammar BookSpanish 3 Grammar Book
Spanish 3 Grammar Book
benpeters8
 

Destacado (15)

Symfony2からdoctrine mongo db odmを使ってみる
Symfony2からdoctrine mongo db odmを使ってみるSymfony2からdoctrine mongo db odmを使ってみる
Symfony2からdoctrine mongo db odmを使ってみる
 
Symfony2でMongoDBと仲良くする方法
Symfony2でMongoDBと仲良くする方法Symfony2でMongoDBと仲良くする方法
Symfony2でMongoDBと仲良くする方法
 
Corruption
CorruptionCorruption
Corruption
 
Reference Guide to International Space Station
Reference Guide to International Space StationReference Guide to International Space Station
Reference Guide to International Space Station
 
Ccb1sandra mv
Ccb1sandra mvCcb1sandra mv
Ccb1sandra mv
 
Abstract of mit open course ware new textiles
Abstract of mit open course ware new textilesAbstract of mit open course ware new textiles
Abstract of mit open course ware new textiles
 
Презентація продукції Леонфарм
Презентація продукції ЛеонфармПрезентація продукції Леонфарм
Презентація продукції Леонфарм
 
Diapo stage etranger Bac pro Agri 2010
Diapo stage etranger Bac pro Agri 2010Diapo stage etranger Bac pro Agri 2010
Diapo stage etranger Bac pro Agri 2010
 
Una cucina solare
Una cucina solareUna cucina solare
Una cucina solare
 
Spanish 3 Grammar Book
Spanish 3 Grammar BookSpanish 3 Grammar Book
Spanish 3 Grammar Book
 
Class album
Class albumClass album
Class album
 
Ussd
UssdUssd
Ussd
 
Biologiacelular1
Biologiacelular1Biologiacelular1
Biologiacelular1
 
2010 Results Presentation
2010 Results Presentation2010 Results Presentation
2010 Results Presentation
 
Mine
MineMine
Mine
 

Gitのおさらい