Slide 1

Slide 1 text

粚๜矒ګ薪盢膏砺֢ 犥 傶ֺ Mouson & Duncan @ Laradubet #02 2016.07.14

Slide 2

Slide 2 text

Ջ讕ฎ̿粚๜ᓕቘ̀牫

Slide 3

Slide 3 text

Version_20150707

Slide 4

Slide 4 text

Version_20150707

Slide 5

Slide 5 text

Version_20150707

Slide 6

Slide 6 text

Version_20150707 ߺ㮆ฎ碝粚牫

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

硬ԧՋ讕牫

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

ಅ犥粚๜䛑扗 ̿ெ讕ᓕቘ̀牫

Slide 11

Slide 11 text

粚๜ᓕቘ䛑扗懿袅 4W • What 硬ԧՋ讕牫 • Why 傶Ջ讕ᘒ硬牫 • Who 抑硬ጱ牫 • When Ջ讕碻狡硬牫

Slide 12

Slide 12 text

磪ߺ犚 ̿粚๜ᓕቘ̀ૡٍ牫

Slide 13

Slide 13 text

̿粚๜ᓕቘ̀ૡٍ觊ࣳ

Slide 14

Slide 14 text

獤碂ୗ 膏 褸Ӿୗ • 褸Ӿୗ EX: Subversion牏CVS • ಅ磪砺֢᮷ࣁӾ瓷牧䷱磪翕᪠蝫矑㳷 篷ဩਂ玲 • 獤碂ୗ EX: Mercurial SCM牏GIT • ๜瑿疰磪ਠ碉懿袅牧䷱磪翕᪠犖ݢ犥 砺֢

Slide 15

Slide 15 text

犥 傶ֺ

Slide 16

Slide 16 text

GIT ጱ瞲犤

Slide 17

Slide 17 text

git 玟ऒ獤觊 Local Local Repo/ Master Staging Area Workspace

Slide 18

Slide 18 text

git init - 虻碘䓚ڡত Local Local Repo/ Master Staging Area Workspace git init

Slide 19

Slide 19 text

git init - 虻碘䓚ڡত Local Local Repo/ Master Staging Area Workspace git init

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

git status Local Local Repo/ Master Staging Area Workspace git status

Slide 25

Slide 25 text

git status Local Local Repo/ Master Staging Area Workspace git status

Slide 26

Slide 26 text

git status Local Local Repo/ Master Staging Area Workspace git status

Slide 27

Slide 27 text

GIT .gitignore 䲆礯 Local Local Repo/ Master Staging Area Workspace

Slide 28

Slide 28 text

GIT .gitignore 䲆礯 Local Local Repo/ Master Staging Area Workspace

Slide 29

Slide 29 text

GIT .gitignore 䲆礯 Local Local Repo/ Master Staging Area Workspace

Slide 30

Slide 30 text

git add [folder/file] 碝ी Local Local Repo/ Master Staging Area Workspace git add

Slide 31

Slide 31 text

git add [folder/file] 碝ी Local Local Repo/ Master Staging Area Workspace git add

Slide 32

Slide 32 text

git commit Local Local Repo/ Master Staging Area Workspace git add git commit

Slide 33

Slide 33 text

git commit Local Local Repo/ Master Staging Area Workspace git add git commit

Slide 34

Slide 34 text

git commit --amend Local Local Repo/ Master Staging Area Workspace git add git commit

Slide 35

Slide 35 text

git commit • git commit --amend • git commit --amend --author=“Name ” • git config user.name “Mou Chen” • git config user.email [email protected] • git config --global user.name “Mou Chen”

Slide 36

Slide 36 text

git config alias 1. git config alias.co checkout • git co 缛ෝ git checkout 2. git config alias.ci commit • git ci 缛ෝ git commit 3. …

Slide 37

Slide 37 text

git ૡٍ • ZSH (http://www.zsh.org/) • oh-my-zsh (http://ohmyz.sh/) • powerline (https://github.com/powerline/ powerline) • git autocomplete (https://github.com/ robbyrussell/oh-my-zsh/tree/master/ plugins/git )

Slide 38

Slide 38 text

git reset […] ᯿ᗝ Local Local Repo/ Master Staging Area Workspace —soft HEAD^ —mixed HEAD^ git reset —hard HEAD^

Slide 39

Slide 39 text

git checkout [. | hash]

Slide 40

Slide 40 text

git add -p

Slide 41

Slide 41 text

Ջ讕ฎ hunk ?

Slide 42

Slide 42 text

Ջ讕ฎ hunk ?

Slide 43

Slide 43 text

git log Local Local Repo/ Master Staging Area Workspace git log

Slide 44

Slide 44 text

git log Local Local Repo/ Master Staging Area Workspace git log

Slide 45

Slide 45 text

git 咳㬙ک螐ᒒ

Slide 46

Slide 46 text

git 咳㬙ک螐ᒒ

Slide 47

Slide 47 text

git 咳㬙ک螐ᒒ

Slide 48

Slide 48 text

git 咳㬙ک螐ᒒ

Slide 49

Slide 49 text

git remote add origin git@git.. Local Local Repo/ Master Staging Area Workspace

Slide 50

Slide 50 text

git remote add origin git@git.. Local Remote Remote Repo/ Master Remote Repo/ Master Local Repo/ Master Staging Area Workspace

Slide 51

Slide 51 text

git push -u origin master Local Remote Remote Repo/ Master Remote Repo/ Master Local Repo/ Master Staging Area Workspace git push

Slide 52

Slide 52 text

git fetch Local Remote Remote Repo/ Master Remote Repo/ Master Local Repo/ Master Staging Area Workspace git push git fetch

Slide 53

Slide 53 text

git merge Local Remote Remote Repo/ Master Remote Repo/ Master Local Repo/ Master Staging Area Workspace git push git merge git fetch

Slide 54

Slide 54 text

git pull Local Remote Remote Repo/ Master Remote Repo/ Master Local Repo/ Master Staging Area Workspace git push git merge git fetch git pull

Slide 55

Slide 55 text

Q & A