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
99
Crashing an app 40 times a day - A Developer Story
yelinaung
0
190
Andorid Bootcamp
yelinaung
1
320
Introduction to GDG Yangon
yelinaung
2
150
Kickstarting Your First Android App
yelinaung
1
120
How To Ask Technical Questions and Answers
yelinaung
0
100
Other Decks in Programming
See All in Programming
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.7k
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.3k
Findy Team+ Awardを受賞したかった!ベストプラクティス応募内容をふりかえり、開発生産性向上もふりかえる / Findy Team Plus Award BestPractice and DPE Retrospective 2024
honyanya
0
130
KubeCon NA 2024の全DB関連セッションを紹介
nnaka2992
0
110
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
270
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.3k
BEエンジニアがFEの業務をできるようになるまでにやったこと
yoshida_ryushin
0
100
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
630
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
360
103 Early Hints
sugi_0000
1
330
なまけものオバケたち -PHP 8.4 に入った新機能の紹介-
tanakahisateru
1
140
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
140
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
940
Git: the NoSQL Database
bkeepers
PRO
427
64k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Optimising Largest Contentful Paint
csswizardry
33
3k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Raft: Consensus for Rubyists
vanstee
137
6.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
327
24k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
230
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Faster Mobile Websites
deanohume
305
30k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
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!