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 alias
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
zeero
March 29, 2024
Programming
0
94
オレオレ Git alias
Gitコマンドの alias 機能について解説し、Git操作の煩雑さを軽減するために自作したaliasを紹介します。作業効率向上のヒントになれば嬉しいです。
zeero
March 29, 2024
Tweet
Share
More Decks by zeero
See All by zeero
Siriの歴史を紐解く
zeero
0
73
Other Decks in Programming
See All in Programming
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
ThorVG Viewer In VS Code
nors
0
760
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
100
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2k
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
120
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
AtCoder Conference 2025
shindannin
0
1k
Fluid Templating in TYPO3 14
s2b
0
130
MUSUBIXとは
nahisaho
0
130
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.8k
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
130
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
WENDY [Excerpt]
tessaabrams
9
36k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
120
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.5k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Documentation Writing (for coders)
carmenintech
77
5.2k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Agile that works and the tools we love
rasmusluckow
331
21k
Transcript
Git alias Git alias
Git CUI Git CUI
Git alias Git alias # 使い方 git config alias.エイリアス名 "gitのサブコマンド"
# グローバルに定義するなら `--global` オプションを指定 # 例 git config --global alias.st "status" git st
None
None
head head # 登録 git config alias.head "rev-parse --short=7 HEAD"
# 使い方 git head # クリップボードへのコピーと組み合わせると尚良し git head | pbcopy
wdiff wdiff # 登録 git config alias.wdiff "diff --word-diff -w"
# 使い方 git wdiff
amend amend git commit --amend # 登録 git config alias.amend
"commit --amend --no-edit" # 使い方 git add . git amend
swap swap # 前提:GNU版sedコマンド `gsed` が必要です brew install gnu-sed #
登録 git config alias.swap "\!GIT_SEQUENCE_EDITOR='gsed -i \"1{h;d};2G\"' git rebase -i HEAD~2" # 使い方 git swap
fixup fixup # 前提:GNU版sedコマンド `gsed` が必要です brew install gnu-sed #
登録 git config alias.fixup "\!f(){ git commit --fixup \$1 && GIT_SEQUENCE_EDITOR='gsed -i \"\"' git rebase -i \$1^;};f" # 使い方 git add . git fixup COMMITHASH
None