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テクニック / Gunma.web#47
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Yuji Yamaguchi
December 04, 2022
Technology
0
340
明日使えるかもしれないGitテクニック / Gunma.web#47
Yuji Yamaguchi
December 04, 2022
Tweet
Share
More Decks by Yuji Yamaguchi
See All by Yuji Yamaguchi
Oxlintはいいぞ
yug1224
5
1.3k
Figma + Storybook + PlaywrightのMCPを使ったフロントエンド開発
yug1224
13
5.8k
メンバーの成長速度にバフをかける1on1ミーティング / 2024-12-06
yug1224
25
12k
強みを伸ばすキャリアデザイン
yug1224
3
550
インターンと盛り上げる全社員参加型Advent Calendarの作り方 / 2024-02-22-QiitaNight
yug1224
1
160
2022ランキング圏外から2023ランキング入りを実現したテックブログ運営について / 2023-07-28-QiitaEngineerFesta
yug1224
1
190
Qiitaいいね数をGASで計測している話 / 2023-07-24-HRBrainFlyHigh
yug1224
1
1.1k
HRBrainの生態系を支えるフロントエンドチームの取り組み / 2023-06-22-AwEngineerMeetup
yug1224
0
140
React+TypeScriptで拡張機能が開発できるRaycastのススメ / 20221027_Raycast
yug1224
1
970
Other Decks in Technology
See All in Technology
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
220
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.3k
生成AIを活用した音声文字起こしシステムの2つの構築パターンについて
miu_crescent
PRO
3
210
Greatest Disaster Hits in Web Performance
guaca
0
270
Tebiki Engineering Team Deck
tebiki
0
24k
今日から始めるAmazon Bedrock AgentCore
har1101
4
410
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
480
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
380
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
130
Featured
See All Featured
Designing Experiences People Love
moore
144
24k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Odyssey Design
rkendrick25
PRO
1
500
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
190
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
A Tale of Four Properties
chriscoyier
162
24k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Building Adaptive Systems
keathley
44
2.9k
Transcript
明⽇使えるかもしれない Gitテクニック Yuji Yamaguchi/@yug1224 Gunma.web#47
▸ ヤマグチ ユウジ(34) ▸ Tw: @yug1224 ▸ フロントエンドエンジニア ▸ 三児の⽗
▸ 11歳、9歳、1歳 ▸ 最近の興味 ▸ ホームオートメーション ▸ Gunma.web ▸ #28以来5年ぶり ⾃⼰紹介 2 ▸ 2011年04⽉ 通信系企業 ▸ Webコンテンツサービスの開発運⽤ ▸ 2016年01⽉ ネット広告系企業 ▸ 広告配信管理システムの開発運⽤ ▸ 2016年10⽉ ITサービス企業 ▸ 飲⾷店向け予約台帳システムの開発 ▸ 2021年10⽉ SaaS企業 ▸ 勤怠管理システムの開発 ▸ 2022年08⽉ HRTech企業 ▸ エンジニアリングマネージャー
Gitで使われる⽇付 ▸ Author Date ▸ コミットの著者であるauthorによるcommit⽇付 ▸ GIT_AUTHOR_DATE / git
commit --date=<date>で任意の⽇時を指定できる ▸ git logで表⽰される情報はこちら ▸ Committer Date ▸ コミットを取り込んだ⼈を表すcommitterによるcommit⽇付 ▸ GIT_COMMITTER_DATE / git rebase / git commit --amendで変更される ▸ git log --pretty=fullerオプションで表⽰できる 3
GitHubで使われる⽇付 ▸ GitHubの草はCommitter Dateが表⽰されている ▸ git rebase / git commit
--amendで他者のcommitを変更しても表⽰される 4
もしかして? ▸ --committer-date-is-author-dateでCommitter DateをAuthor Dateと同期できる ▸ これを繰り返せば無限に草を⽣やせるのでは?🤔 5
6 DEMO https://github.com/YuG1224/kusa
まとめ Gitで使われる⽇付は、Author Date / Commit Dateの2種類 git commit --date /
git rebase --committer-date-is- author-date で改竄することができる denoで外部コマンドを利⽤するときは、--allow-runで権限付与を⾏う deno 1.28からnpmライブラリを標準で利⽤できるようになった kusaを⽣やすときは、⽤法⽤量を守って、正しくお使いください 7
8 EOF