SlideShare a Scribd company logo
@paulononaka
Git &	GitHub		
for Beginners
Everyday workflow
1. Create	a file
2. Save it
3. Edit it
4. Save	it again
5. Etc
Manual	version control
File	life	and	teams
Can	we	automate this?
For	each	document	version,	we	need	
to know
When
What
Why
Who
Git & Github for beginners
Why	GIT?
Central
Distributed
Installing	GIT
https://git-scm.com
First	Time	Setup
Check	version
$ git --version
Setup	user
$ git config --global user.name
"Paulo Nonaka”
$ git config --global user.email
”info@developerS2.com”
$ git config --list
Scenarios
Exist remotely
• Clone
Do	not	exist	remotely
• Initialized
• Not	initialized
Init
$ cd project
$ git init
Status
$ git status
.gitignore
$ touch .gitignore
Where	are	we	now?
Add
$ git add <file>
or
$ git add .
Reset
$ git reset <file>
or
$ git reset .
Commit
$ git commit –m "detailed
message"
Log
$ git log
Show
$ git show
or
$ git show <hash_id>
Diff
Working:
$ git diff
$ git diff <file>
Staging:
$ git diff --cached
$ git diff –-cached <file>
Branching
One	feature	=	One branch
Branch
$git branch my-feature
Working	in	the Branch
$git checkout my-feature
$git commit (x2)
Merge
$git checkout master
$git diff master..my-feature
$git merge my-feature
Clean up
$git branch -d my-feature
Remote
Git & Github for beginners
Git & Github for beginners
Profile page
Repository page
Commits	& Branches
Scenarios
Exist remotely
• Clone
Do	not	exist	remotely
• Initialized
• Not	initialized
Create	a	remote	repo
$ git remote add origin
https://github.com/paulononaka/teste.git
Remote
$ git remote –v
$ git remote remove <name>
Push
$ git push –u origin master
Scenarios
Exist remotely
• Clone
Do	not	exist	remotely
• Initialized
• Not	initialized
Clone
$ git clone
git@github.com:<user>/<project>.git
<folder>
or
$ git clone
https://github.com/<user>/<project>.git
<folder>
Pull
$ git pull origin master
Remote	branch
Local:
$ git branch my-feature
$ git branch -d my-feature
Remote:
$ git branch -a
$ git push origin my-feature
$ git push origin --delete my-feature
Conflicts
Conflicts
Conflicts
Conflicts
Conflicts
Conflicts
Conflicts
Forks
Pull requests
Issues
Github pages
Github	Desktop app
desktop.github.com
More	tips
https://github.com/paulononaka/dotfiles/blob/
master/git/gitconfig
https://gist.github.com/paulononaka/5286136
Last	but	not	least
Thank	you!

More Related Content

PPTX
Git n git hub
PPTX
Understanding GIT and Version Control
PPTX
Introduction git
PDF
Git and Github slides.pdf
PPTX
Git and Github Session
PDF
Git real slides
PPTX
Creating the first app with android studio
Git n git hub
Understanding GIT and Version Control
Introduction git
Git and Github slides.pdf
Git and Github Session
Git real slides
Creating the first app with android studio

What's hot (20)

PPTX
Git 101 for Beginners
PDF
Git - An Introduction
PDF
Introduction to Git
PPT
Git workflows presentation
PPTX
Git & GitLab
PPTX
Git One Day Training Notes
PDF
Git basics
PPTX
Git in 10 minutes
PPTX
Git 101
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
PDF
Git & GitHub for Beginners
PDF
Devops Porto - CI/CD at Gitlab
PDF
Introduction to Git and Github
PPTX
Github
PDF
Learning git
PDF
Git and git flow
PPTX
Github basics
PPTX
Git and github
PDF
Intro to Git and GitHub
Git 101 for Beginners
Git - An Introduction
Introduction to Git
Git workflows presentation
Git & GitLab
Git One Day Training Notes
Git basics
Git in 10 minutes
Git 101
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git & GitHub for Beginners
Devops Porto - CI/CD at Gitlab
Introduction to Git and Github
Github
Learning git
Git and git flow
Github basics
Git and github
Intro to Git and GitHub
Ad

Similar to Git & Github for beginners (20)

PPTX
git.ppt.pptx power point presentation got Google internet
PPTX
GDG On Campus NBNSCOE Version Control Essential : Master Git & GitHub
PPTX
github ppt git ppt on git hub to know ab
PDF
Git & version control crash course
PPTX
Source Control Using Git
PPTX
GIT.pptx
PPTX
Git and Github workshop GDSC MLRITM
PPTX
Intro to Git and Github
PDF
Git basics with notes
PPTX
Git and Github
PDF
GIT_Overview.
PDF
Git in a nutshell
PDF
PPTX
sample.pptx
PPTX
Git Overview
PPTX
Git Basics for Software Version Management
PPTX
Git 101
PPTX
git and github-1.pptx
PDF
Git basics
PPT
git.ppt.pptx power point presentation got Google internet
GDG On Campus NBNSCOE Version Control Essential : Master Git & GitHub
github ppt git ppt on git hub to know ab
Git & version control crash course
Source Control Using Git
GIT.pptx
Git and Github workshop GDSC MLRITM
Intro to Git and Github
Git basics with notes
Git and Github
GIT_Overview.
Git in a nutshell
sample.pptx
Git Overview
Git Basics for Software Version Management
Git 101
git and github-1.pptx
Git basics
Ad

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
Advanced IT Governance
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
Advanced IT Governance
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
MYSQL Presentation for SQL database connectivity
Chapter 2 Digital Image Fundamentals.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Sensors and Actuators in IoT Systems using pdf
NewMind AI Monthly Chronicles - July 2025
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced methodologies resolving dimensionality complications for autism neur...
Review of recent advances in non-invasive hemoglobin estimation

Git & Github for beginners