SlideShare a Scribd company logo
1 of 64
Download to read offline
Moving from Freelance to
Collaborative Workflow
Git into the Groove
AmyJune Hineline
Community Manager of Opensource.com
Accessible Websites | 2
Colonialism is a
current ongoing
process, and we
need to build our
mindfulness of our
present
participation.
AmyJune Hineline (she/her)
Senior Community Manager at
Opensource.com
linkedin.com/volkswagenchick
twitter.com/volkswagenchick
Spot (he/him/they)
Spotty McSpots A lot
Neighborhood love bug
● Chasing his own tail
● Getting pets
● Drools
What we’ll
discuss today
▸ Freelance versus Agency life
▸ Version control
・ Git
・ Git branches
・ Git commands
▸ Git clients
▸ Local environments
▸ Demos if time permits
Git into the Groove | 5
Moving from Freelance
to Agency
Freedom!
Do you own thing!
Git into the Groove | 7
Wild, wild, west
You’ve been on your own awhile….
Git into the Groove | 8
Juggling all the
roles
You’ve been on your own awhile….
Git into the Groove | 9
Agency Workflow
Working with others
You’re on a
team!
Teamwork offers a diversity of
thought and creativity.
Git into the Groove | 11
Learning
opportunities
Exposure to structured learning,
and mentoring.
Git into the Groove | 12
Workflow Management
Submit a
Ticket
Backup code,
database and files
Feature branches
Set up local environment
Push up to
Development
Approval &
push to
production
QA &
Testing
Sync code and
clone
Staging
Git into the Groove | 13
Version Control
Managing code over time
According to Atlassian
Version control software keeps track of
every modification to the code in a special
kind of database.
Git into the Groove | 15
16
Prerequisites
Install git locally.
A computer equipped for the task.
Git into the Groove | 17
Basic knowledge of the command line
More than cute ascii art...
Git into the Groove | 18
19
Git Clients
Git Clients
Git into the Groove | 21
IDEs
Git into the Groove | 22
23
Basics of git
24
Never Gonna Git you down...
Never Gonna Git
You Up
Git into the Groove | 24
The basics
● git init
● git status
● git branch
● git diff
● git log
● git push
● git pull
● git add
● git commit
● git merge
The basics of git
26
Working locally
Git into the Groove
Git into the Groove | 26
If you haven't connected your local
repository to a remote server, add
the server to be able to push to it.
git pull
git remote
Fetch and merge changes on the
remote server to your working
directory.
git clone
Create a working copy of a local
repository.
Working Locally
Git into the Groove | 27
Cloning
Git into the Groove | 28
29
Take my Branch Away
Git into the Groove | 29
Branches
List all the branches in
your repo.
git branch
Delete the feature branch.
git checkout -d
Create a new branch and
switch to it.
git checkout -b
Switch from one branch to
another.
git checkout
Git into the Groove | 30
Branches
Git into the Groove | 31
32
Push It…
Push it real good
Git into the Groove | 32
Pushing
Add one or more files to
staging.
git add *
git add <file name>
git add
Send changes to the main
branch of your remote
repository.
git push
Fetch and merge changes
on the remote server to
your working directory.
git pull
Commit changes to
current branch.
git commit -m “message
here”
git commit -a
git commit
Git into the Groove | 33
Pushing
Git into the Groove | 34
Pausing for a moment to
hold space for
#BlackTransLivesMatter
Requesting for the very first
time….
Like a Merge-In
Git into the Groove | 36
Fetch and merge changes on the
remote server to your working
directory.
git merge
git pull
To merge a different branch into
your active branch
git remote
This command is used to connect
your local repository to the remote
server.
Bringing it all Together
Git into the Groove | 37
Merging
Git into the Groove | 38
Merging
Git into the Groove | 39
40
If you’ve got the notion…
Conflicts N
Commotion
Git into the Groove | 40
Merge Conflicts
List the files you've
changed and those you
still need to add or
commit.
git status
Send changes to the main
branch of your remote
repository.
git push
View all the m.erge
conflicts
git log - -merge
Show changes between
commits, commit and
working tree, etc
git diff
Git into the Groove | 42
Conflicts
Git into the Groove | 43
This command undoes all the
commits after the specific commit
and preserves the changes.
git reset - -hard <commit>
git reset <commit>
This command discards all history
and goes back to the specific
commit.
git fetch origin
Fetches the latest history from the
server.
Really mess up?
Git into the Groove | 44
Reset of all the
things!
Git into the Groove | 45
46
Web Based
Version Control
GitLab, BitBucket, GitHub…
The Workflow
▸ Create a branch
・ Work in a space away from production
▸ Work locally
・ Work from anywhere
▸ Add commits
・ Modify the code and add the changes
▸ Create a pull request
・ This starts the process of review
▸ Code review
・ Discuss and collaborate
▸ Merge
・ Move your code into the main branch
Git into the Groove | 47
GitHub repo
Git into the Groove | 48
GitHub pull
request
Git into the Groove | 49
Local Environments
51
Prerequisites
At a minimum
Web server, a database server, and
PHP for WordPress
Git into the Groove | 52
A computer
equipped for
task
Processor, memory, disk space…
Git into the Groove | 53
Local Server
Setups
▸ Linux development environments
▸ Mac OS development environment
▸ Windows development environment
▸ Virtual Machine development
environments
▸ Docker development environments
Git into the Groove | 54
55
Making the
case
Why have a local server?
Limited Access
to Client Server
If you’re building a website and you
don’t have access to the web
server.
Git into the Groove | 56
Experimentation
You don’t want to mess with the
production code while experimenting
with new code.
Git into the Groove | 57
Test your development before
going live.
Makes the development less
stressful.
More control!
Customize your
setup
Debugging complex errors requires
more control over your
environment.
No internet
connection required!
No longer bound to the internet.
Work from anywhere!
Local Environments
Git into the Groove | 58
Local web
development
environment
Usually come equipped with:
▸ A web server
▸ A database management system
▸ A server-side programming language
▸ An interface for controlling the web server
▸ An interface for accessing the database
Git into the Groove | 59
60
New Browser
Based
Environment
https://github.com/drud/ddev
-gitpod-launcher
Thanks!!
linkedin.com/volkswagenchick
twitter.com/volkswagenchick
▸ Bitbucket Support
▸ Top 20 Git Commands With Examples
▸ Oh Shit, Git!?!
▸ Git Documentation
Resources - Git
Git into the Groove | 62
PANTHEON.IO
I’m a Pantheon Hero
I advocate for the growth, education,
and advancement of the Open Web
and Pantheon
Learn more about what it takes to be a
Hero below:
https://community.pantheon.io
DEMO!!
Because live demos always work!
64

More Related Content

What's hot

Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHubNishan Bose
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewRueful Robin
 
Git and github fundamentals
Git and github fundamentalsGit and github fundamentals
Git and github fundamentalsRajKharvar
 
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Noa Harel
 
Introduction to git administration
Introduction to git administrationIntroduction to git administration
Introduction to git administrationShawn Doyle
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumAbhijitNarayan2
 
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14msohn
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitRobert Lee-Cann
 
Gitops: the kubernetes way
Gitops: the kubernetes wayGitops: the kubernetes way
Gitops: the kubernetes waysparkfabrik
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHubVikram SV
 

What's hot (20)

Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git kelvin
Git   kelvinGit   kelvin
Git kelvin
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
 
Git and github fundamentals
Git and github fundamentalsGit and github fundamentals
Git and github fundamentals
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Git presentation
Git presentationGit presentation
Git presentation
 
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Introducing GitLab (September 2018)
Introducing GitLab (September 2018)
 
Introduction to git administration
Introduction to git administrationIntroduction to git administration
Introduction to git administration
 
Up GitLab Presentation 2015
Up GitLab Presentation 2015Up GitLab Presentation 2015
Up GitLab Presentation 2015
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
 
Github
GithubGithub
Github
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Gerrit Workshop
Gerrit WorkshopGerrit Workshop
Gerrit Workshop
 
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
 
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
 
Git basics
Git basicsGit basics
Git basics
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
 
Gitops: the kubernetes way
Gitops: the kubernetes wayGitops: the kubernetes way
Gitops: the kubernetes way
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 

Similar to WordFest Live 2022 - Git into the Groove - Moving from Freelance to Collaborative Workflow

Similar to WordFest Live 2022 - Git into the Groove - Moving from Freelance to Collaborative Workflow (20)

Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git introduction for Beginners
Git introduction for BeginnersGit introduction for Beginners
Git introduction for Beginners
 
Day 2_ Get Git with It! A Developer's Workshop.pptx
Day 2_ Get Git with It! A Developer's Workshop.pptxDay 2_ Get Git with It! A Developer's Workshop.pptx
Day 2_ Get Git with It! A Developer's Workshop.pptx
 
Lets git to it
Lets git to itLets git to it
Lets git to it
 
Open Sprintera (Where Open Source Sparks a Sprint of Possibilities)
Open Sprintera (Where Open Source Sparks a Sprint of Possibilities)Open Sprintera (Where Open Source Sparks a Sprint of Possibilities)
Open Sprintera (Where Open Source Sparks a Sprint of Possibilities)
 
Git
GitGit
Git
 
Open Source_Git.pptx
Open Source_Git.pptxOpen Source_Git.pptx
Open Source_Git.pptx
 
Enterprise git
Enterprise gitEnterprise git
Enterprise git
 
Intro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucketIntro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucket
 
Formation git
Formation gitFormation git
Formation git
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your Project
 
Git Workflow
Git WorkflowGit Workflow
Git Workflow
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
 
Git for uninitiated
Git for uninitiatedGit for uninitiated
Git for uninitiated
 
Github
GithubGithub
Github
 
Git Basics
Git BasicsGit Basics
Git Basics
 

Recently uploaded

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 

Recently uploaded (20)

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 

WordFest Live 2022 - Git into the Groove - Moving from Freelance to Collaborative Workflow