Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
What is GIT?
Slide 2
Slide 2 text
@MUKKOO
Slide 3
Slide 3 text
@mukkoo dev.welaika.com
Slide 4
Slide 4 text
@mukkoo
Slide 5
Slide 5 text
@mukkoo Wordless, Wordmove, ecc…
Slide 6
Slide 6 text
what is versioning? @mukkoo what is git? how git works? Roadmap
Slide 7
Slide 7 text
what is versioning? @mukkoo
Slide 8
Slide 8 text
Copy & Paste VCS @mukkoo project/ project_old/ project_old_old/ project_ok/ project_ok_ok/ project_ok_ok_new/ projectOK_ok_ok_new/
Slide 9
Slide 9 text
Centralized VCS @mukkoo CVS, Subversion, Perforce Server Repository Client Client Client Client
Slide 10
Slide 10 text
Distributed VCS @mukkoo Git, Mercurial, Bazaar Hub Repository Server Server Server Server Repository Repository Repository Repository
Slide 11
Slide 11 text
versioning - recap @mukkoo we need versioning copy & paste VCS is too trivial centralized and distributed VCS
Slide 12
Slide 12 text
what is GIT*? @mukkoo *idiot
Slide 13
Slide 13 text
Linus Torvalds
Slide 14
Slide 14 text
focus @mukkoo 1. Make the opposite of CVS (SVN) 2. Distributed workflow 3. Safe against file corruption 4. High performance
Slide 15
Slide 15 text
Snapshot not DIFF @mukkoo 0 +2 +4 -3/2 DIFF: Every commit record differences 0 2 6 1,5 SNAPSHOT: Every commit record all file tree
Slide 16
Slide 16 text
Three States @mukkoo Git Directory Working Directory Staging Area Untracked Committed
Slide 17
Slide 17 text
WARNING!!! the hardest part is coming.
Slide 18
Slide 18 text
@mukkoo
Slide 19
Slide 19 text
Branching @mukkoo c1 c2 master HEAD feature
Slide 20
Slide 20 text
Branching @mukkoo c1 c2 master HEAD feature c3 c4 c5 c6 feature2
Slide 21
Slide 21 text
@mukkoo Need fix on master. NOW!
Slide 22
Slide 22 text
Branching @mukkoo c1 c2 master HEAD feature c3 c4 c5 c6 feature2 c7 c8
Slide 23
Slide 23 text
Branching @mukkoo c1 c2 master HEAD feature c3 c4 c7 c8 c9
Slide 24
Slide 24 text
GIT theory - recap @mukkoo snapshot not diff every file can be in three states branches help us to easily switch context and collaborate
Slide 25
Slide 25 text
The Theory is Over @mukkoo Are you tired?
Slide 26
Slide 26 text
@mukkoo How GIT works?
Slide 27
Slide 27 text
INIT @mukkoo $ git init
Slide 28
Slide 28 text
status @mukkoo $ git status show the working tree status
Slide 29
Slide 29 text
ADD @mukkoo $ git add add file to staging area
Slide 30
Slide 30 text
Commit @mukkoo $ git commit -m “message” record changes
Slide 31
Slide 31 text
LOG @mukkoo $ git log Show commits log
Slide 32
Slide 32 text
checkout - - @mukkoo $ git checkout -- Restore a modified file
Slide 33
Slide 33 text
branch @mukkoo $ git branch Create a new branch
Slide 34
Slide 34 text
checkout @mukkoo $ git checkout Move to branch
Slide 35
Slide 35 text
merge @mukkoo $ git merge merge branch
Slide 36
Slide 36 text
Demo time @mukkoo if you want, if we can
Slide 37
Slide 37 text
GIT Commands - recap @mukkoo You must be confident with CLI A few commands to start Theory is important
Slide 38
Slide 38 text
Bonus: Useful concepts @mukkoo
Slide 39
Slide 39 text
remotes (command and concept) fetch (command) push/pull (commands) @mukkoo Network
Slide 40
Slide 40 text
@mukkoo Remote Repository Server Server Server Server Repository Repository Repository Repository
Slide 41
Slide 41 text
ignoring files (.gitignore) gitk and git gui (gui tools) shortcut and configs (.gitconfig) @mukkoo Settings and tools
Slide 42
Slide 42 text
Q&A @mukkoo
Slide 43
Slide 43 text
what does WordPress use? @mukkoo
Slide 44
Slide 44 text
GIT a nice WordCamp @mukkoo