Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Version control with Git and Github _ANC
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Nnabueze Uhiara
September 28, 2017
1
110
Version control with Git and Github _ANC
Presentation at Android Nigeria Community event
Nnabueze Uhiara
September 28, 2017
Tweet
Share
More Decks by Nnabueze Uhiara
See All by Nnabueze Uhiara
Version control with Git and Github v1
nezspencer
0
37
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
410
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
36k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
170
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Embracing the Ebb and Flow
colly
88
5k
How to make the Groovebox
asonas
2
1.9k
Statistics for Hackers
jakevdp
799
230k
Transcript
Version control with Git and Github - Nnabueze Uhiara (software
developer, iQube labs) @_NezSpencer https://github.com/NezSpencer
Main points • What is version control? • Why version
control? • Why Git? • Why github? • Setting up git • Git (proposed) workflow
What is Version control System (VCS)? A system that records
changes to a file or set of files over time so that you can recall specific versions later.
Why Version control? • Collaboration • Synchronization • Knowing what
changed and why it changed(diff, log and commit messages) • Allows undo (reverting to earlier versions) • Backup
VCS contd 2 types of VCS:
Git? • It is a distributed VCS • Enables offline
work • Immunity to explore/try out new things • Large community
Why GitHub? • Large community of fellow devs • Integrates
seamlessly with other dev platforms • Helps to boost your CV • Show your work to the dev world. • Apparently gives you the liberty to use fork indiscriminately not minding what it rhymes with. PS: Git != GitHub
Setting up git on your PC Go to https://git-scm.com/downloads and
follow the instructions there to install git for your OS type
Setting up a new git repo • Git init •
Setup .gitignore • Git add • Git commit -m “commit message” • Git remote add origin https:gitrepo.git • Git push -u origin master
Working with existing git repo Git clone
Common git commands • Clone, • Checkout • Branch •
Merge • Rebase • Commit • Push • pull
Proposed git workflow Working on a new feature? Create a
new branch : git checkout -b <feature-name> OR git branch <feature-name> git checkout <feature-name>
How important is git/version control?
None
Merge conflicts When does a merge conflict occur?/ What causes
a merge conflict? Set up default merge-tool: git mergetool
git commit -m “THANKS FOR LISTENING”