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
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
99
Material Resource Planning - OpenERP Manufacturing Management
maman
0
240
Material Resource Planning - OpenERP Warehouse Management
maman
0
99
Other Decks in Programming
See All in Programming
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.1k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
210
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
7
4.3k
TestingOsaka6_Ozono
o3
0
270
はじめてのカスタムエージェント【GitHub Copilot Agent Mode編】
satoshi256kbyte
0
160
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
520
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
5.2k
クラウドに依存しないS3を使った開発術
simesaba80
0
220
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
360
Python札幌 LT資料
t3tra
7
1.1k
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
360
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
320
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Thoughts on Productivity
jonyablonski
74
5k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
2
3.9k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
170
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
130
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
120
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
290
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
280
Building the Perfect Custom Keyboard
takai
2
670
Build your cross-platform service in a week with App Engine
jlugia
234
18k
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