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
「テストは愚直&&網羅的に書くほどよい」という誤解 / Test Smarter, Not Harder
munetoshi
0
170
0626 Findy Product Manager LT Night_高田スライド_speaker deck用
mana_takada
0
170
新メンバーも今日から大活躍!SREが支えるスケールし続ける組織のオンボーディング
honmarkhunt
5
7.4k
Agentic Coding: The Future of Software Development with Agents
mitsuhiko
0
100
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
2
640
MDN Web Docs に日本語翻訳でコントリビュートしたくなる
ohmori_yusuke
1
120
Team operations that are not burdened by SRE
kazatohiei
1
310
Hack Claude Code with Claude Code
choplin
4
2.1k
10 Costly Database Performance Mistakes (And How To Fix Them)
andyatkinson
0
340
Hypervel - A Coroutine Framework for Laravel Artisans
albertcht
1
130
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
220
すべてのコンテキストを、 ユーザー価値に変える
applism118
3
1.3k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
53
7.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
950
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
What's in a price? How to price your products and services
michaelherold
246
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.4k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.7k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Side Projects
sachag
455
42k
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!