Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Git VCS - Talk @PHP User Group Malang, March 9 ...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Achmad Mahardi
March 09, 2015
Programming
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git VCS - Talk @PHP User Group Malang, March 9 2015
Git - Open Source, Distributed, Speedy, and Efficient version manager.
Achmad Mahardi
March 09, 2015
More Decks by Achmad Mahardi
See All by Achmad Mahardi
CSS Modules - Talk @Malang Front-End, January 8 2016
maman
2
180
Webpack Assets Loading - Talk @PHP User Group Malang, March 2015
maman
0
120
Material Resource Planning - OpenERP Manufacturing Management
maman
0
260
Material Resource Planning - OpenERP Warehouse Management
maman
0
110
Other Decks in Programming
See All in Programming
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.4k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
210
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
190
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
230
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
1.4k
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
410
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
200
Workers Cache を知る
syumai
0
360
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Domain-Driven Transformation
hschwentner
2
2.3k
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
10k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
GraphQLとの向き合い方2022年版
quramy
50
15k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
Accessibility Awareness
sabderemane
1
250
Amusing Abliteration
ianozsvald
1
340
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Transcript
GIT VCS @achmadmahardi
Achmad Mahardi • Frontend Devs • Server side languages (PHP,
NodeJS, C#) • Unix aficionados
GIT Open Source - Distributed - Speedy - Efficient -
*is • (almost) Everything local • No network needed •
Immutable
• Backup tool • Binary file storage/diff/apapun • Github/Bitbucket/apapun *is
not
INSTALASI
msysgit built-in / brew install git
apt-‐get install git / yum install git pkg_add -‐r git via ports / donlot source, kompel dewe
FIRST STEPS
git config -‐-‐global user.name "..." git config -‐-‐global user.email
"..." git config user.name "..." git config user.email "..." ~
git config -‐-‐global color.ui true
*optional* ENVARS • EXPORT PAGER=less • EXPORT EDITOR=nano
GETTING STARTED
git init Membuat repository baru
None
git status Melihat status repository
git add Masukkan/track file ke repository
*gitignore • curl -‐L -‐s https:// www.gitignore.io/api/ $LANG •
binary files • autogenerated files • autogenerated folders
git commit Fix-kan perubahan, catat history (delta)
*commit convention • Jelaskan perubahan • Singkat padat jelas •
Max 50 karakter/line
*commit convention -cont • curl -‐L http://git.io/xTwk • GitHub
specific syntaxes
SYNC& REMOTES& BRANCHES. github.
mabes open source forex IB client area. vagrant, PHP5, bootstrap
+ LESS
git remote mengatur referensi ke remote repo add <name> <url>
rm <name> rename <old> <new>
git fetch import commit dari remote ke local
None
git fetch import commit dari remote ke local
git merge Merge changes dari remote-referenced branch ke master branch
kita
*merge vs rebase • merge = direct merging • rebase
= prevent unnecessary git config -‐-‐global branch.autosetuprebase always
*mengenai git pull • fetch + merge • --rebase =
fetch + rebase
git push export commit dari local ke remote ➜
git branch manajemen branch.
branching
None
None
None
None
fast-forward merge
3-way merge
*github • fast-forward merge otomatis • close issues via commit
message • integration (travis, scrutinizer, slack, ...)
DEVELOPMENT PRACTICES advanced chapter
• sering sering commit & resync • three-tier development (dev,
staging, prod). • patuhi commit convention / buat commit convention u/ team. • gitignore, .gitignore, .gitignore
None
None
None
&
None
*+++ • isolated • through-testing • rolling-release • lebih gampang
u/ revert
*lagi? • https://speakerdeck.com/ schacon/introduction-to-git • https://speakerdeck.com/ holman/more-git-and-github- secrets • https://www.atlassian.com/git/
/maman /achmadmahardi /Achmad.mahardi Pertanyaan/Diskusi? Malang PHP User Group