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入門
Search
Paralleltree
June 27, 2016
Programming
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なんちゃってGit入門
学校で使ったやつ
Paralleltree
June 27, 2016
Other Decks in Programming
See All in Programming
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
220
GraphQL の onError と Nullability のこれから
quramy
0
200
AI Augmentation Techniques with Liberty
ivargrimstad
1
320
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
140
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
オーケストレーション記述言語 Katari
yukikurage
0
220
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
170
Event is what happens
moro
2
3.2k
Crash Auto Pipelines
veronikapj
1
340
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
560
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
160
Performance Optimization With LLMs
xleitix
0
240
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
How GitHub (no longer) Works
holman
316
150k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
Facilitating Awesome Meetings
lara
57
7.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
790
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Agile that works and the tools we love
rasmusluckow
331
22k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
For a Future-Friendly Web
brad_frost
184
11k
Faster Mobile Websites
deanohume
310
32k
Transcript
3Fθϩ͔Β࢝ΊΔ(JU։ൃ
(JUJTԿ
"ࢄܕόʔδϣϯ ཧγεςϜ
None
͘͡ (JUͱ όʔδϣϯཧͱ UIF(JU8BZ ࢄܕͱ
όʔδϣϯཧͱ
2࠷৽൛ͲΕͰ͠ΐ͏
2࠷৽൛ͲΕͰ͠ΐ͏ "Θ͔Γ·ͤΜ
2࠷৽൛ͲΕͰ͠ΐ͏ "Θ͔Γ·ͤΜ
͜Μͳࢥ͍Λ͠ͳ͍ͨΊͷ όʔδϣϯཧγεςϜ w ίʔυ υΩϡϝϯτ FUD ͷมߋΛཧ w Ճ͑ΒΕͨมߋΛ
UIF(JU8BZ
श͏ΑΓ׳ΕΖ w 8JOEPXT w IUUQTHJUGPSXJOEPXTHJUIVCJP͔Β (JUGPS8JOEPXTΛΠϯετʔϧ w IUUQTEFTLUPQHJUIVCDPN͔Β (JU)VCGPS8JOEPXTΛΠϯετʔϧ .BDՄ
w .BD-JOVY w ͓͍ͷύοέʔδϚωʔδϟʔͰαΫοͱ w FY $ sudo apt-get install git
(JUΛΔͨΊͷ࠷খࣝ w ϦϙδτϦʜ(JUʹΑΔཧͷ࠷େ୯Ґ w ίϛοτʜϑΝΠϧͷมߋΛ·ͱΊͨͷ w ϒϥϯνʜίϛοτΛࢦ͢ΤΠϦΞε ผ໊
σΟϨΫτϦ (JUΛΔͨΊͷ࠷খࣝ ϦϙδτϦ ͜͜ΑΓ֎ͷ ੈքཧ͠ͳ͍
(JUΛΔͨΊͷ࠷খࣝ ϦϙδτϦ ίϛοτ ίϛοτ ͷࢀর
(JUΛΔͨΊͷ࠷খࣝ ϦϙδτϦ ίϛοτ ͷࢀর /&8
(JUΛΔͨΊͷ࠷খࣝ ϦϙδτϦ master ϒϥϯνɿ ίϛοτͷผ໊ b026 26ab 6d7f 48a2 ίϛοτϋογϡ
*% ͍֮͑ͯΒΕͳ͍ʜ
(JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦΛ࡞Δ ࡞ۀ͢Δ εςʔδϯά͢Δ ίϛοτ͢Δ
ʹΔ
σΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ $ mkdir dir
σΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ HJU $ git init
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ echo hello > bar.txt ϫʔΫπϦʔ ΠϯσοΫε
CBS IFMMP
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ git add bar.txt ϫʔΫπϦʔ ΠϯσοΫε CBS
CBS BEE IFMMP
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ git commit -m "Initial commit" ϫʔΫπϦʔ
ΠϯσοΫε CBS CBS DPNNJU
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ echo happy >> bar.txt ϫʔΫπϦʔ ΠϯσοΫε
CBS IFMMP IBQQZ HEAD
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ git add bar.txt ϫʔΫπϦʔ ΠϯσοΫε CBS
CBS BEE IFMMP IBQQZ HEAD
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ echo sad >> bar.txt ϫʔΫπϦʔ ΠϯσοΫε
CBS CBS IFMMP IBQQZ HEAD IFMMP IBQQZ TBE
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ git commit -m "Initial commit" ϫʔΫπϦʔ
ΠϯσοΫε CBS CBS DPNNJU IFMMP IBQQZ IFMMP IBQQZ TBE HEAD
(JUཧԼσΟϨΫτϦ (JUΛ͏ͨΊͷ࠷খࣝ ϦϙδτϦ $ git show HEAD ϫʔΫπϦʔ ΠϯσοΫε CBS
IFMMP IBQQZ TBE HEAD
ͦͷଞͷίϚϯυ w HJUTUBUVTʜݱࡏͷεςʔδϯάঢ়گΛදࣔ w HJUEJ⒎ʜΠϯσοΫεͱϫʔΫπϦʔͷࠩΛදࣔ w HJUTIPXDPNNJUʜίϛοτͷৄࡉΛදࣔ w HJUMPHʜίϛοτཤྺΛදࣔ
(JUJTλΠϜϚγϯ ϦϙδτϦ master b026 26ab 6d7f 48a2 HEAD
(JUJTλΠϜϚγϯ ϦϙδτϦ master b026 26ab 6d7f 48a2 HEAD DIFDLPVU HEAD
$ git checkout HEAD^^ (or git checkout 26ab)
(JUJTλΠϜϚγϯ ϦϙδτϦ master b026 26ab 6d7f 48a2 HEAD $ cat
bar.txt # time travel!!
(JUJTλΠϜϚγϯ ϦϙδτϦ master b026 26ab 6d7f 48a2 HEAD DIFDLPVU HEAD
$ git checkout master
ϒϥϯνBTϙΠϯλ w NBTUFSʜHJU͕σϑΥϧτͰ࡞͢Δϒϥϯν w )&"%ʜݱࡏͷϫʔΫπϦʔΛද͢ϒϥϯν w DPNNJU?ʜDPNNJUͷͭલͷίϛοτΛࢦ͢ w DPNNJU??ʜDPNNJUͷͭલͷίϛοτΛࢦ͢ w
DPNNJUdOʜDPNNJUͷO൪લͷίϛοτΛࢦ͢
(JUλΠϜϚγϯ (JUͷ҆৺ײJT(PE
ίϛοτཻ 2ͲΕ͘Β͍ͷ୯ҐͰίϛοτ͢Ε͍͍ͷʁ "͋ͱͰݟ͕ͨࣗΘ͔Γ͍͢୯ҐͰ େ͖͗͢Δͱมߋͷաఔ͕Θ͔Γʹ͍͘ˠमਖ਼ࠔ খ͗͢͞Δͱίϛοτ͕૿͑ΔˠࡶԽ
ࢄܕͱ
ࢄܕ͡Όͳ͍ ˠूதܕ SFQP มߋଈө QVTI
QVTI ࢄܕ SFNPUF SFQP มߋΛૹ৴લʹۛຯͰ͖Δ MPDBM SFQP MPDBM SFQP QVMM
॓ w (JUͰهΛ͚ͭ·͠ΐ͏ w ྫ͑ʜ w ϑΝΠϧ w ຖ൩ίϛοτ w
िؒ͘Β͍