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
Yuji Yamaguchi
December 04, 2022
Technology
0
270
明日使えるかもしれないGitテクニック / Gunma.web#47
Yuji Yamaguchi
December 04, 2022
Tweet
Share
More Decks by Yuji Yamaguchi
See All by Yuji Yamaguchi
メンバーの成長速度にバフをかける1on1ミーティング / 2024-12-06
yug1224
19
11k
強みを伸ばすキャリアデザイン
yug1224
3
430
インターンと盛り上げる全社員参加型Advent Calendarの作り方 / 2024-02-22-QiitaNight
yug1224
1
92
2022ランキング圏外から2023ランキング入りを実現したテックブログ運営について / 2023-07-28-QiitaEngineerFesta
yug1224
0
110
Qiitaいいね数をGASで計測している話 / 2023-07-24-HRBrainFlyHigh
yug1224
1
850
HRBrainの生態系を支えるフロントエンドチームの取り組み / 2023-06-22-AwEngineerMeetup
yug1224
0
59
React+TypeScriptで拡張機能が開発できるRaycastのススメ / 20221027_Raycast
yug1224
1
860
DX向上委員会 / 20220922_dxhacklt
yug1224
1
190
n8nでワークフローを自動化した話 / 20220914_n8n
yug1224
1
1.7k
Other Decks in Technology
See All in Technology
デジタルアイデンティティ技術 認可・ID連携・認証 応用 / 20250114-OIDF-J-EduWG-TechSWG
oidfj
2
730
あなたの知らないクラフトビールの世界
miura55
0
160
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
300
WantedlyでのKotlin Multiplatformの導入と課題 / Kotlin Multiplatform Implementation and Challenges at Wantedly
kubode
0
260
Plants vs thieves: Automated Tests in the World of Web Security
leichteckig
0
130
20250122_個人向けCopilotどうなん
ponponmikankan
0
160
新卒1年目、はじめてのアプリケーションサーバー【IBM WebSphere Liberty】
ktgrryt
0
160
Re:Define 可用性を支える モニタリング、パフォーマンス最適化、そしてセキュリティ
pyama86
3
330
技術に触れたり、顔を出そう
maruto
1
160
JAWS-UG20250116_iOSアプリエンジニアがAWSreInventに行ってきた(真面目編)
totokit4
0
170
RubyでKubernetesプログラミング
sat
PRO
4
160
スクラムマスターの活動と組織からの期待のズレへの対応 / Dealing with the gap between Scrum Master activities and organizational expectations
pauli
1
620
Featured
See All Featured
Being A Developer After 40
akosma
89
590k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Music & Morning Musume
bryan
46
6.3k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
970
How to Think Like a Performance Engineer
csswizardry
22
1.3k
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