Paul Broadwith @pauby https://blog.pauby.com
Gi Git t Fu Fund ndam amen enta tals ls
Open up a world of community and collaboration
Gi Git t Fu Fund ndam amen enta tals ls Open up a world of - - PowerPoint PPT Presentation
Gi Git t Fu Fund ndam amen enta tals ls Open up a world of community and collaboration Paul Broadwith @pauby https://blog.pauby.com Who Am I? Paul Broadwith, Glasgow, Scotland 25+ years in defence, government, financial
Paul Broadwith @pauby https://blog.pauby.com
Open up a world of community and collaboration
sectors
cChoco DSC Resource
Who Am I?
In This Session
Who Is This Aimed At?
What Is Git?
Wikipedia defines Git as: Gi Git is a vers rsion ion cont ntro rol l system for r tra racking ing cha hang nges es in n comput puter er file les s and coordinating work on those files among multiple people. It is primarily used for source code management in software development, but it can be used to keep track of changes in any set of files. As a distributed revision control system it is aimed med at spe peed, d, data int ntegrit grity, and support for distributed, non-linear workflows.
What Is Git? Which means Git is: Git t is a version sion cont ntrol
ystem tem for tracking king cha hang nges es in co n compu puter ter files.
It is aimed ed at spe peed ed and nd da data int ntegrity. egrity.
What Is Git?
Wikipedia defines Version Control System as: … vers rsion ion cont ntro rol l is the he ma mana nage gement ment of cha hang nges s to docume uments nts, , comput puter er pro rograms, rams, larg rge e web sites, , and nd
her r coll llecti ction
s of inf nfor
mation ion. . Cha hang nges es are re us usua ually ly identi ntifie fied d by a num number r or r letter r code, term rmed the he "revision number“ … Each revision is associated with a a time mestamp tamp and nd the he pe pers rson
ing the he cha hang nge. . Revisio evisions ns can n be compare pared, d, re restored, red, and nd with h some types of file les, s, merg rged. d.
What Is Git? Which means a version control system is: Vers rsion ion cont ntrol rol is the he mana nagement gement of cha hang nges es to collectio lections ns of inf nformation.
hang nges es are ide dentified ntified by by a nu numbe ber r associated ciated with th a tim imestamp estamp and nd the he pe person son maki king ng the he cha hang nge. e.
Recommended Software ht https://c ps://chocolat hocolatey.org ey.org ht https://c ps://chocolat hocolatey.org/in ey.org/install stall
Required Tools
Gi Git To t Tools ls
> choco install git -y ht https://g ps://gitforwindows itforwindows.org/ .org/ https://git-scm.com/download/mac > apt install git-all
Recommended Tools
Gi Git Cr t Cred edential ential Man anager ager Fo For r Wi Windows
Gi Git Ext t Exten ensions ions
GitHub Pull Requests
PSGit
Companies & Projects You Know
Git Providers & Software
Microsoft Windows & GVFS
8421 2500 4352 1760
Code Code Pushes (per Pushes (per day) day) Pull R Pull Requests (p equests (per day) er day) Active B Active Branches ranches Windows Bui Windows Builds (per lds (per day) day)
https://blogs.msdn.microsoft.com/bharry/2017/05/24/the-largest-git-repo-on-the-planet/
As at May 2017 (Using GVFS)
DSCResources Repository Statistics
https://blogs.msdn.microsoft.com/powershell/2018/09/13/desired-state-configuration-dsc-planning-update-september-2018/
Since 1 January 2018
Who Uses Git? Writers Websites Developers, Coders & Scripters CI / CD, Runbooks, Cookbooks
2017 GitHub Use
https://octoverse.github.com/
47 Mil illion lion Pu Pull ll Re Requests ests 24 Mil illion lion Dev evelope elopers rs 25.3 3 Mil illion lion Acti tive ve Re Reposi sito tories ries 1 B 1 Bil illio lion n Commi mmits ts
Git Has Your Back Change History Undo Mistakes Collaborate CI / CD Open Source
Even n Th The Beards rds Use It It
The 3 Stages Of Git
8 Essential Git Commands
sta tatu tus
ad add
pull ll clo lone ne push chec eckou
commit mmit re remo mote te
The 3 Stages
Unsta tage ged Sta tage ged Co Committ tted
> git status > git add <. | FILES> > git commit –m ‘Message’
Change source files Stage changed files Commit changes
The 5 Fundamental Building Blocks Of Git commit mit pu pull ll requests quests repository pository fork * br branc nches hes
What Is A Repository? Just a folder where you store your project files Repository / Repo – terminology - both used
myproj
How Do Branches Work?
master branch update-doc branch dev branch fix-memory-leak branch
What Is A Commit?
When one or more changes have been applied to a branch, its called a … commit mmit
Co Committ tted
> git commit –m ‘Message’
Commit changes
What Is A Fork? cool-project my/cool-project cool-project fork repository link Forking a repo is simply creating a linked copy of that
pushed to the original repository.
What Is A Pull Request? Allows review and discussion around those changes.
master branch update-doc branch
Lets others know about a change you have made.
Git Cycle
Pu Push Commit mit Pu Pull ll
> git pull > git add . > git commit –m “Initial commit” > git push
Pull Request Flow master branch dev branch created from master commit code submit pull request dev branch merged to master review changes > git checkout –b dev > git add . > git commit –m “msg” > git push
Summary
work with Open Source projects;
Thank You! linkedin.com/in/paulbroadwith
Paul Broadwith
pauby.com @pauby github.com/pauby