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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuji Yamaguchi
December 04, 2022
Technology
0
350
明日使えるかもしれないGitテクニック / Gunma.web#47
Yuji Yamaguchi
December 04, 2022
Tweet
Share
More Decks by Yuji Yamaguchi
See All by Yuji Yamaguchi
EMからICへ、二周目人材としてAI全振りのプロダクト開発で見つけた武器
yug1224
5
600
Oxlintはいいぞ
yug1224
5
2.5k
Figma + Storybook + PlaywrightのMCPを使ったフロントエンド開発
yug1224
13
6k
メンバーの成長速度にバフをかける1on1ミーティング / 2024-12-06
yug1224
25
12k
強みを伸ばすキャリアデザイン
yug1224
3
560
インターンと盛り上げる全社員参加型Advent Calendarの作り方 / 2024-02-22-QiitaNight
yug1224
1
160
2022ランキング圏外から2023ランキング入りを実現したテックブログ運営について / 2023-07-28-QiitaEngineerFesta
yug1224
1
200
Qiitaいいね数をGASで計測している話 / 2023-07-24-HRBrainFlyHigh
yug1224
1
1.1k
HRBrainの生態系を支えるフロントエンドチームの取り組み / 2023-06-22-AwEngineerMeetup
yug1224
0
150
Other Decks in Technology
See All in Technology
GCASアップデート(202601-202603)
techniczna
0
230
AWS CDK「読めるけど書けない」を脱却するファーストステップ
smt7174
3
200
モジュラモノリス導入から4年間の総括:アーキテクチャと組織の相互作用について / Architecture and Organizational Interaction
nazonohito51
3
830
Go標準パッケージのI/O処理をながめる
matumoto
0
240
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
390
TypeScript 7.0の現在地と備え方
uhyo
7
1.9k
AI時代のSaaSとETL
shoe116
1
200
AI時代の「本当の」ハイブリッドクラウド — エージェントが実現した、あの頃の夢
ebibibi
0
150
新規事業×QAの挑戦:不確実性を乗りこなす!フェーズごとに求められるQAの役割変革
hacomono
PRO
0
130
Postman v12 で変わる API開発ワークフロー (Postman v12 アップデート) / New API development workflow with Postman v12
yokawasa
0
150
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
2
13k
「お金で解決」が全てではない!大規模WebアプリのCI高速化 #phperkaigi
stefafafan
4
1.8k
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
The Mindset for Success: Future Career Progression
greggifford
PRO
0
280
A Tale of Four Properties
chriscoyier
163
24k
A better future with KSS
kneath
240
18k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
110
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Prompt Engineering for Job Search
mfonobong
0
200
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
240
For a Future-Friendly Web
brad_frost
183
10k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
400
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
210
Chasing Engaging Ingredients in Design
codingconduct
0
150
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