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 / Git for Hardware and Soft...
Search
Yusuke Miyazaki
April 14, 2016
Programming
0
240
計算機科学実験及び演習のための Git / Git for Hardware and Software Laboratory Project
Yusuke Miyazaki
April 14, 2016
Tweet
Share
More Decks by Yusuke Miyazaki
See All by Yusuke Miyazaki
Adopting Kafka for the #1 job site in the world
ymyzk
1
7.7k
Python ウェブアプリケーションのためのプロファイラの実装 // Implementation of a profiler for Python web applications
ymyzk
2
5.3k
CAMPHOR- のスケジュール管理を支える技術 // Schedule Management in CAMPHOR-
ymyzk
1
600
tmux 入門 / Introduction to tmux
ymyzk
0
750
技術カンファレンスのススメ / Tech Conference
ymyzk
0
470
Proper Tail Calls - New Feature in ECMAScript 2015
ymyzk
1
370
Modern JavaScript - Introduction to ECMAScript 2015 & 2016
ymyzk
0
220
コンテナ型仮想化入門 / Introduction to container-based virtualization
ymyzk
0
340
漸進的型付けについて語る会 オープニング / Gradual Typing Opening
ymyzk
0
510
Other Decks in Programming
See All in Programming
Zoneless Testing
rainerhahnekamp
0
120
선언형 UI에서의 상태관리
l2hyunwoo
0
130
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
130
As an Engineers, let's build the CRM system via LINE Official Account 2.0
clonn
1
670
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.6k
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
fs2-io を試してたらバグを見つけて直した話
chencmd
0
220
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
530
あれやってみてー駆動から成長を加速させる / areyattemite-driven
nashiusagi
1
200
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
760
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
180
Featured
See All Featured
Code Review Best Practice
trishagee
65
17k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Adopting Sorbet at Scale
ufuk
73
9.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.3k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
What's in a price? How to price your products and services
michaelherold
243
12k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.2k
Designing Experiences People Love
moore
138
23k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
RailsConf 2023
tenderlove
29
940
Transcript
ܭࢉثՊֶ࣮ݧٴͼԋश :VTVLF.JZB[BLJ !૯߹ݚڀ߸ؗ ܭࢉػՊֶ࣮ݧٴͼԋशͷ ͨΊͷ(JU
͜Μͳ͜ͱ͋Γ·ͤΜ͔ w ʮίʔυΛॻ͍͍ͯͨΒΑ͘Θ͔Βͳ͘ͳͬͨ ͷͰࡢॻ͍ͨͱ͜Ζ·ͰΓ͍ͨʯ w ʮͲ͜Λฤूͨ͠ͷ͔͔Βͳ͘ͳͬͨʯ w ʮ՝Λఏग़ͨ͠λΠϛϯάͷίʔυΛͯ͠ ͓͖͍ͨʯ
(JUΛ͏ͱʜ w ࣍ͷΑ͏ͳ͜ͱ͕Ͱ͖·͢ w ػೳΛͭՃͨ͠ޙͷঢ়ଶΛอଘ w ՝Λఏग़ͨ͠λΠϛϯάͷঢ়ଶΛอଘ w લճͷঢ়ଶ͔Βฤूͨ͠༰ͷࠩΛӾཡ
(JUͱ w ࢄܕόʔδϣϯཧγεςϜ 7$4 w -JOVYΧʔωϧͷόʔδϣϯཧͷͨΊʹ -JOVT5PSWBMETࢯʹΑͬͯ։ൃ w ݱࡏͷϝϯςφᖛ७ࢯ
όʔδϣϯཧγεςϜ w ϑΝΠϧ ιʔείʔυͳͲ ͷมߋཤྺΛཧ ͢ΔγεςϜ w ػೳΛՃ͢Δͨͼʹͦͷঢ়ଶΛอଘͰ͖Δ w όάΛࠐΜͰ͠·ͬͨ߹Ҏલͷঢ়ଶʹ
Δ͜ͱ͕Ͱ͖Δ w ͋ΔఔͷنͷιϑτΣΞͰ΄΅ඞਢ
(JUͷΠϝʔδ ίϛοτ ϑΝΠϧͷมߋ༰ ϝοηʔδΛؚΉ w ίϛοτ͕༗ඇ८ճάϥϑ %"( Λ͢ ϒϥϯνɾϚʔδ ཤྺΛذͯ͠౷߹Ͱ͖Δ
ࠓճઆ໌͠ͳ͍
࡞ۀͷྲྀΕ 8PSLJOH ࡞ۀσΟϨΫτϦ 4UBHJOH )JTUPSZ ίϛοτ OFX QBSTFSSLU UFTUSLU
NPEJpFE TZOUBYSLU 8PSLJOH%JSFDUPSZʹϑΝΠϧΛՃɾฤू
࡞ۀͷྲྀΕ 8PSLJOH ࡞ۀσΟϨΫτϦ 4UBHJOH )JTUPSZ ίϛοτ ίϛοτ͍ͨ͠ϑΝΠϧΛTUBHJOHʹ HJUBEEpMFpMF OFX
QBSTFSSLU UFTUSLU NPEJpFE TZOUBYSLU OFX QBSTFSSLU NPEJpFE TZOUBYSLU
࡞ۀͷྲྀΕ 8PSLJOH ࡞ۀσΟϨΫτϦ 4UBHJOH )JTUPSZ ίϛοτ 4UBHJOHͷ༰Λίϛοτ ཤྺʹొ
HJUDPNNJUNNFTTBHF OFX QBSTFSSLU UFTUSLU NPEJpFE TZOUBYSLU OFX QBSTFSSLU NPEJpFE TZOUBYSLU NFTTBHF IBTI OFX QBSTFSSLU NPEJpFE TZOUBYSLU
ϦϙδτϦͷ࡞ w όʔδϣϯཧΛ࢝ΊΔͨΊʹ ཤྺΛ֨ೲ͢Δ (JUϦϙδτϦΛ࡞͢Δ w ͡ΊʹҰ͚ͩߦ͑ w ϓϩδΣΫτͷϧʔτσΟϨΫτϦͰ $
git init
ঢ়ଶͷ֬ೝ w ݱࡏͷ(JUϦϙδτϦͷঢ়ଶΛ֬ೝ͢Δʹ $ git status w 8PSLJOH%JSͰՃɾมߋ͞Εͨ༰ 4UBHJOHʹՃ͞Εͨ༰͕දࣔ͞ΕΔ w
ঢ়گ͕Α͘Θ͔Βͳ͘ͳͬͨΒͱΓ͋͑ͣ TUBUVTΛݟΔบΛ͚ͭ·͠ΐ͏
ίϛοτ w ػೳͷՃόάͷमਖ਼ͳͲ͖Γͷྑ͍࣌Ͱ ίϛοτ͠ঢ়ଶΛอଘ͓ͯ͘͠ w ·ͣ৽͘͠όʔδϣϯཧԼʹஔ͘ϑΝΠϧ มߋͨ͠ϑΝΠϧΛ4UBHJOHʹՃ͢Δ $ git add
<file1> <file2> …
ίϛοτ w 4UBHJOHͷ༰Λίϛοτͯ͠ཤྺʹొ͢Δ $ git commit -m "<commit message>" w
ίϛοτ࣌ʹϝοηʔδΛՃ͢Δ w มߋ༰Λॻ͍͓ͯ͘ͱޙͰ͔Γ͍͢ w ྫύʔαʔΛ࣮ w ྫҙຯղੳͰʙʙʙʹͳΔόάΛमਖ਼
ཤྺͷӾཡ w ཤྺΛӾཡ͢Δ$ git log w ίϛοτͷҰཡ͕ϋογϡɾϝοηʔδɾ࣌ͳͲ ͱͱʹදࣔ͞ΕΔ w ͦΕͧΕͷίϛοτϋογϡ
4)" Ͱ ҰҙʹಛఆͰ͖Δ ྫ5a00b5712a039bfea1e8055206ab697e3081247d w ΦϓγϣϯΛՃ͢Δͱͬͱ৭ʑݟΕΔ
ཤྺͷӾཡ w ಛఆͷίϛοτͷมߋ༰ΛݟΔ $ git show <commit>
ࠩͷӾཡ w ࠷ޙͷίϛοτͱ8PSLJOHͷࠩ $ git diff w ࠷ޙͷίϛοτͱ4UBHJOHͷࠩ $ git
diff --cached w ͋Δίϛοτ"ͱ͋Δίϛοτ#ͷࠩ $ git diff <commit A>...<commit B>
࠷ޙͷίϛοτ·ͰΔ w pMFPSEJSΛ࠷ޙͷίϛοτͷঢ়ଶʹ͢ $ git checkout <file or dir>
ίϛοτͷআ w ͋Δίϛοτ·Ͱআ͢Δ 8PSLJOH%JSͦͷ·· $ git reset --soft w
͋Δίϛοτ·Ͱআ͢Δ 8PSLJOH%JSॻ͖͑Δ $ git reset --hard
• man git / git help <subcommand> w IUUQTHJUTDNDPNEPD w
IUUQTUSBJOJOHHJUIVCDPNSFTPVSDFT ͞Βʹৄ͘͠