Intro to Version Control with Git and Github

26
INTRO TO VERSION CONTROL WITH GIT AND GITHUB by: | twitter: | github: joe fleming @w33ble w33ble

Transcript of Intro to Version Control with Git and Github

Page 1: Intro to Version Control with Git and Github

INTRO TO VERSIONCONTROLWITH GIT AND GITHUB

by: | twitter: | github: joe fleming @w33ble w33ble

Page 2: Intro to Version Control with Git and Github

TAKEAWAYVCSGitGithub

Page 3: Intro to Version Control with Git and Github

EXPECTATIONSQuestions

Page 4: Intro to Version Control with Git and Github

WHAT IS VERSIONCONTROL?

"The task of keeping a software system consisting ofmany versions and configurations well organized."

History, Collaboration and State

Page 5: Intro to Version Control with Git and Github

HISTORY

Page 6: Intro to Version Control with Git and Github

HISTORYActivity logRollback

Page 7: Intro to Version Control with Git and Github

COLLABORATION

Page 8: Intro to Version Control with Git and Github

COLLABORATIONMultiple contributorsAvoid overwrites

Page 9: Intro to Version Control with Git and Github

GIT

Git-scm.com

Page 10: Intro to Version Control with Git and Github

WHY GIT?It's popularBranching/merging blissDistributed source control

Page 11: Intro to Version Control with Git and Github

BRANCHING

Page 12: Intro to Version Control with Git and Github

GIT WORKFLOW

Page 13: Intro to Version Control with Git and Github

DISTRIBUTEDWork locallyShare remotelyMultiple remotes

Page 14: Intro to Version Control with Git and Github

GITHUB

Free(ish)Great interfaceSocial coding

Page 15: Intro to Version Control with Git and Github

PULL REQUESTS

Page 16: Intro to Version Control with Git and Github

CODE REVIEW

Page 17: Intro to Version Control with Git and Github

CODE REVIEW

Page 18: Intro to Version Control with Git and Github

MERGING

Page 19: Intro to Version Control with Git and Github

BLAME

Page 20: Intro to Version Control with Git and Github

USING GIT

Page 21: Intro to Version Control with Git and Github

BASIC WORKFLOWAdd/Edit/Remove filesConfirm changesStage changesReview changesCommit changes

Page 22: Intro to Version Control with Git and Github

BASIC WORKFLOWSublime, vim, eclipse, etcgit diffgit addgit statusgit commit

Page 23: Intro to Version Control with Git and Github

BRANCHING ANDMERGING

git branchgit checkout -b

git mergegit branch -d

Page 24: Intro to Version Control with Git and Github

USING REMOTESgit fetchgit pullgit push

Page 26: Intro to Version Control with Git and Github

THANKS!

twitter: | github:

joe fleming

@w33ble w33ble