Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
オレオレ Git alias
Search
zeero
March 29, 2024
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
オレオレ Git alias
Gitコマンドの alias 機能について解説し、Git操作の煩雑さを軽減するために自作したaliasを紹介します。作業効率向上のヒントになれば嬉しいです。
zeero
March 29, 2024
More Decks by zeero
See All by zeero
Siriの歴史を紐解く
zeero
0
84
Other Decks in Programming
See All in Programming
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
920
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
140
ActionController meets Protocol Buffers
sorah
0
520
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
460
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
Featured
See All Featured
From π to Pie charts
rasagy
1
400
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Unsuck your backbone
ammeep
672
58k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Making the Leap to Tech Lead
cromwellryan
135
10k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
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