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
95
Material Resource Planning - OpenERP Manufacturing Management
maman
0
240
Material Resource Planning - OpenERP Warehouse Management
maman
0
94
Other Decks in Programming
See All in Programming
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
250
関数型まつりレポート for JuliaTokai #22
antimon2
0
130
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
220
XSLTで作るBrainfuck処理系
makki_d
0
210
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
1
850
XP, Testing and ninja testing
m_seki
2
140
FormFlow - Build Stunning Multistep Forms
yceruto
1
190
無関心の谷
kanayannet
0
180
ktr0731/go-mcpでMCPサーバー作ってみた
takak2166
0
170
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
1
150
Haskell でアルゴリズムを抽象化する / 関数型言語で競技プログラミング
naoya
17
4.8k
複数アプリケーションを育てていくための共通化戦略
irof
10
4k
Featured
See All Featured
Making Projects Easy
brettharned
116
6.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
A Tale of Four Properties
chriscoyier
160
23k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
GraphQLとの向き合い方2022年版
quramy
46
14k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
228
22k
Thoughts on Productivity
jonyablonski
69
4.7k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
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