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
Search
Ye Lin Aung
January 24, 2014
Programming
1
110
Version Control With Git
My talk for UCSY IT Camp 2014 - Version Control with Git
Ye Lin Aung
January 24, 2014
Tweet
Share
More Decks by Ye Lin Aung
See All by Ye Lin Aung
Android Bootcamp Mandalay
yelinaung
0
100
Crashing an app 40 times a day - A Developer Story
yelinaung
0
190
Andorid Bootcamp
yelinaung
1
320
Introduction to GDG Yangon
yelinaung
2
160
Kickstarting Your First Android App
yelinaung
1
120
How To Ask Technical Questions and Answers
yelinaung
0
110
Other Decks in Programming
See All in Programming
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
来たるべき 8.0 に備えて React 19 新機能と React Router 固有機能の取捨選択とすり合わせを考える
oukayuka
2
860
既存デザインを変更せずにタップ領域を広げる方法
tahia910
1
240
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
540
プロダクト志向なエンジニアがもう一歩先の価値を目指すために意識したこと
nealle
0
110
Java on Azure で LangGraph!
kohei3110
0
170
Elixir で IoT 開発、 Nerves なら簡単にできる!?
pojiro
1
150
「ElixirでIoT!!」のこれまでとこれから
takasehideki
0
370
C++20 射影変換
faithandbrave
0
530
Haskell でアルゴリズムを抽象化する / 関数型言語で競技プログラミング
naoya
17
4.9k
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
XP, Testing and ninja testing
m_seki
3
190
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
77
9.4k
The World Runs on Bad Software
bkeepers
PRO
69
11k
Into the Great Unknown - MozCon
thekraken
39
1.9k
GitHub's CSS Performance
jonrohan
1031
460k
Practical Orchestrator
shlominoach
188
11k
Rails Girls Zürich Keynote
gr2m
94
14k
VelocityConf: Rendering Performance Case Studies
addyosmani
330
24k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
17
940
Balancing Empowerment & Direction
lara
1
370
Art, The Web, and Tiny UX
lynnandtonic
299
21k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Transcript
Version Control System with Git Zwenexsys
Zwenexsys About me
Zwenexsys Programmer at Zwenexsys http://zwenex.com
Zwenexsys What is VCS ? • Version control or Source
Control • Used in word processing, wiki system, software development
Zwenexsys Why VCS ? • To share your codes or
resources with others • To keep track of history • Easy to rollback
Zwenexsys Why VCS ?
Zwenexsys Why VCS ?
Zwenexsys What is • Open source distributed VCS • Initially
designed and developed by Linus Torvalds • Very popular
Zwenexsys Installation • Download from http://git-scm.com/ downloads • GUI Programs
http://git-scm.com/ downloads/guis
Zwenexsys Installation Windows http://help.github.com/win-set-up-git Mac http://help.github.com/mac-set-up-git Linux http://help.github.com/linux-set-up-git
Zwenexsys Installation
Zwenexsys Configuration In your terminal / command prompt git config
--global user.name "Your Name" git config --global user.email "
[email protected]
"
Zwenexsys Let’s start using it
Zwenexsys Initialization • Go to your project folder • Check
if it’s correct folder • Run git init
Zwenexsys Adding files git add . git commit -m “initial
commit”
Zwenexsys Steps Staging Area Dirty git add .
Zwenexsys Steps Staging Area Dirty Clean git add . git
commit -m “my commi
Zwenexsys Steps Staging Area Dirty Clean Make changes git add
. git commit -m “my commi
Zwenexsys Tracking History git log
Zwenexsys Current Status git status
Zwenexsys See the difference git diff
Zwenexsys Share with others • Push the local repo to
remote repo • Git Hosting • BitBucket ( www.bitbucket.org ) • GitHub ( www.github.com )
Zwenexsys Share with others • Create a repo at the
hosting • Add the address to the local repo git remote add origin <remote url>
Zwenexsys Share with others • Another user can “clone” it.
git clone <remote url>
Zwenexsys Share with others • Push it ! git push
origin master • Pull it! git pull origin master
Zwenexsys Share with others User A git add . git
commit -m “bug fix #1”
Zwenexsys Share with others User A git add . git
commit -m “bug fix #1” Remote Repo git push
Zwenexsys Share with others User A git add . git
commit -m “bug fix #1” Remote Repo git push User B git pull
Zwenexsys Share with others User A git add . git
commit -m “bug fix #1” Remote Repo git push User B git pull git add . git commit -m “bug fix #2”
Zwenexsys Share with others User A git add . git
commit -m “bug fix #1” Remote Repo git push User B git pull git add . git commit -m “bug fix #2” git push
Zwenexsys Share with others User A git add . git
commit -m “bug fix #1” Remote Repo git push User B git pull git add . git commit -m “bug fix #2” git push git pull
Zwenexsys Try it online • http://try.github.io • http://pcottle.github.io/learnGitBranching • https://www.codeschool.com/courses/git-real
Zwenexsys Q & A
Zwenexsys Thank you & have fun!