Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git VCS - Talk @PHP User Group Malang, March 9 ...
Search
Achmad Mahardi
March 09, 2015
Programming
1
130
Git VCS - Talk @PHP User Group Malang, March 9 2015
Git - Open Source, Distributed, Speedy, and Efficient version manager.
Achmad Mahardi
March 09, 2015
Tweet
Share
More Decks by Achmad Mahardi
See All by Achmad Mahardi
CSS Modules - Talk @Malang Front-End, January 8 2016
maman
2
170
Webpack Assets Loading - Talk @PHP User Group Malang, March 2015
maman
0
98
Material Resource Planning - OpenERP Manufacturing Management
maman
0
240
Material Resource Planning - OpenERP Warehouse Management
maman
0
98
Other Decks in Programming
See All in Programming
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
300
AIコーディングエージェント(skywork)
kondai24
0
110
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
910
Integrating WordPress and Symfony
alexandresalome
0
120
「文字列→日付」の落とし穴 〜Ruby Date.parseの意外な挙動〜
sg4k0
0
360
『実践MLOps』から学ぶ DevOps for ML
nsakki55
2
550
目的で駆動する、AI時代のアーキテクチャ設計 / purpose-driven-architecture
minodriven
11
3.9k
関数実行の裏側では何が起きているのか?
minop1205
1
560
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
5
1.1k
Google Antigravity and Vibe Coding: Agentic Development Guide
mickey_kubo
2
130
レイトレZ世代に捧ぐ、今からレイトレを始めるための小径
ichi_raven
0
490
AIエージェントを活かすPM術 AI駆動開発の現場から
gyuta
0
230
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
Site-Speed That Sticks
csswizardry
13
990
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
380
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
690
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.1k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Statistics for Hackers
jakevdp
799
230k
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