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
コミット履歴キレイですか / clean up commit logs
Search
tockey
February 22, 2023
Programming
0
5.4k
コミット履歴キレイですか / clean up commit logs
tockey
February 22, 2023
Tweet
Share
More Decks by tockey
See All by tockey
シングルサインオンを導入したら運用がこんなに楽になった!
tockey
0
88
Other Decks in Programming
See All in Programming
AtCoder Heuristic First-step Vol.1 講義スライド(山登り法・焼きなまし法編)
takumi152
3
840
‘무차별 LGTM~👍’만 외치던 우리가 ‘고봉밥 코드 리뷰’를?
hannah0731
0
480
PHPでお金を扱う時、終わりのない 謎の1円調査の旅にでなくて済む方法
nakka
2
860
気がついたら子供が社会人になって 自分と同じモバイルアプリエンジニアになった件 / Parent-Child Engineers
koishi
0
250
複雑なフォームと複雑な状態管理にどう向き合うか / #newt_techtalk vol. 15
izumin5210
4
2.3k
아직도 SOLID 를 '글'로만 알고 계신가요?
sh1mj1
0
330
研究開発と実装OSSと プロダクトの好循環 / A virtuous cycle of research and development implementation OSS and products
linyows
1
180
Kubernetesで実現できるPlatform Engineering の現在地
nwiizo
1
240
Return of the Full-Stack Developer
simas
PRO
1
290
Boost Your Web Performance with Hyperdrive
chimame
1
220
体得しよう!RSA暗号の原理と解読
laysakura
3
470
RailsでCQRS/ESをやってみたきづき
suzukimar
2
1.4k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
227
22k
Facilitating Awesome Meetings
lara
53
6.3k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.7k
Testing 201, or: Great Expectations
jmmastey
42
7.3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
What's in a price? How to price your products and services
michaelherold
244
12k
Fireside Chat
paigeccino
37
3.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
176
52k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
For a Future-Friendly Web
brad_frost
176
9.6k
Transcript
コミット履歴キレイですか 2023/2/22 @ハードル激低LT大会ッ! ENECHANGE株式会社 tockey
2 自己紹介 SIer/Web系企業 • 業務基幹系システムの保守運用、iOSアプリの機能追加 ・保守運用 などを担当 • Swift /
Scala /Rails など 現職:ENECHANGE株式会社 • バックエンドを主戦場として、システム開発PJのリードエ ンジニアをやっています。 • 直近はterraformでインフラ修正もやっています。 HN:tockey Twitter: @tockeysan_ github: takutoki
3 • よくわからないコミットメッセージだけで埋まってませんか? コミットログは汚くなりがち
4 rebaseを使おう その1
5 rebaseを使おう その1 • 複数のコミットをまとめて、コミットメッセージを打ち直す ◦ pick = そのまま1コミットとして使う ◦
s = squch 一つ上のコミットと一緒のコミットにまとめる
6 rebaseを使おう その1 • コミットメッセージの入力
7 rebaseを使おう その1 • できた!
8 マージ先ブランチの取り込み • git merge develop を繰り返す日々。。。 ◦ 新しいコミットが積まれていく。。。
9 rebaseを使おう その2
10 rebaseを使おう その2 https://git-scm.com/book/en/v2/Git-Branching-Rebasing feature develop feature develop
11 注意! • コミットハッシュが変わる ◦ リモートにすでにpushしていた場合、push時に-f(force push)が必要 ◦ push先に注意
12 おわり