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
MCP with Cloudflare Workers
yusukebe
2
220
暇に任せてProxmoxコンソール 作ってみました
karugamo
2
720
たのしいparse.y
ydah
3
120
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
良いユニットテストを書こう
mototakatsu
8
2.7k
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
140
なまけものオバケたち -PHP 8.4 に入った新機能の紹介-
tanakahisateru
1
120
「Chatwork」Android版アプリを 支える単体テストの現在
okuzawats
0
180
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
830
Haze - Real time background blurring
chrisbanes
1
510
情報漏洩させないための設計
kubotak
3
310
tidymodelsによるtidyな生存時間解析 / Japan.R2024
dropout009
1
790
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
Designing Experiences People Love
moore
138
23k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
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 ͞Βʹৄ͘͠