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
Search
acomagu
October 21, 2019
Programming
2
95
あなたの知らない(かもしれない)Git
191021 Yamashou会
acomagu
October 21, 2019
Tweet
Share
More Decks by acomagu
See All by acomagu
地方 MaaS 事例: アプリの進化に伴って変化してきた Stripe 利用方法
acomagu
0
60
Stripe リコンサイルの勘所
acomagu
0
240
CDK 一発で全てのエラーログを Slack に流す
acomagu
0
1.9k
AWS CDK を支える Constructs について
acomagu
0
130
DDDとは結局何なのか
acomagu
0
200
API Gateway HTTP API について
acomagu
0
110
JP_Stripes: 一貫性に寄与する設計
acomagu
0
75
Stripeではじめての決済
acomagu
0
700
UTF-8 依存の Go コードとは?
acomagu
1
150
Other Decks in Programming
See All in Programming
CSC307 Lecture 06
javiergs
PRO
0
360
開発部に不満を持っていたCSがエンジニアにジョブチェンしてわかった「勝手に諦めない」ことの大切さ
sakuraikotone
28
16k
はしめてのプログラミングとロボット制御
watawatavoltage
0
290
ドメイン駆動設計の実践
masuda220
PRO
19
5.2k
AWSでゲームサーバーを運用! Amazon GameLiftのお話
iriikeita
0
200
TiDB Serverless ~理想のServerless DBを考える~
soso_15315
1
160
Xcode 16のPreviewModifierと@Previewableを活用した効率的なプレビュー方法の考察
ojun9
2
160
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
ぼっちを避けて楽しむためのアノテコノテ / Various Tips and Tricks to Avoid Loneliness and Have Fun
nrslib
3
1.7k
大規模マルチテナントを解決するYugabyteDBという選択肢
nnaka2992
1
250
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
140
しくじり先生 Image Matching Challenge 2024 編
goosehaaan
0
810
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
325
21k
The Invisible Side of Design
smashingmag
294
50k
Leading Effective Engineering Teams 2024
addyosmani
3
300
Mobile First: as difficult as doing things right
swwweet
219
8.8k
Gamification - CAS2011
davidbonilla
78
4.9k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
Code Reviewing Like a Champion
maltzj
517
39k
Designing for humans not robots
tammielis
247
25k
[RailsConf 2023] Rails as a piece of cake
palkan
35
4.4k
How to Ace a Technical Interview
jacobian
274
23k
How To Stay Up To Date on Web Technology
chriscoyier
784
250k
The Cost Of JavaScript in 2023
addyosmani
31
4.7k
Transcript
あなたの知らない (かもしれない) Git 2 @acomagu 伊藤勇希 191021 #Yamashou会
> man $USER - @acomagu (あこまぐ) - s1230004 - お年寄り(どうか年齢を計算しないでください
) - 最近の趣味: 音ゲー / VTuber - 最近好きな技術: Go / TypeScript / Linux
@ HEAD の alias e.g. $ git reset @
git diff --color-moved コードの移動を色付け表示する log 等でもつかえる
None
git diff master.. C..F で「C と F の分岐元から F まで」
を表す ↑は git diff $(git merge-base master @) に同じ log 等割とどこでもつかえる man git-rev-parse を見てみてください!
git diff --ignore-space-change インデントだけの変更を無視する 全 Lisper が歓喜した機能(らしい)
git diff git diff --ignore-space-change
git rebase -i -r/--rebase-merges マージコミットを保持したまま rebase をする -p/--preserve-merges に変わる機能 以下:
github.com/acomagu/material-conflict
None
None
None
None
None
git rerere コンフリクトの解決方法を覚えておいてくれる $ git config --global rerere.enable true 全員すべき!!!
None
None
None
まとめ - @ HEAD のエイリアス - git log --color-moved コードの移動を色付け表示する
- git diff master.. ブランチを切ったときからのdiff - git diff --ignore-space-changes インデントだけの変更を無視 - git rebase --rebase-merges rebase 時にマージコミットを復元する - git rerere コンフリクトの解決方法を覚えてくれる
Thanks!