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
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
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
ThorVG Viewer In VS Code
nors
0
760
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
Package Management Learnings from Homebrew
mikemcquaid
0
200
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
1.1k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
dchart: charts from deck markup
ajstarks
3
990
CSC307 Lecture 08
javiergs
PRO
0
670
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
250
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
440
AtCoder Conference 2025
shindannin
0
1k
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
300
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
76
Test your architecture with Archunit
thirion
1
2.1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
The Curious Case for Waylosing
cassininazir
0
230
How to make the Groovebox
asonas
2
1.9k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
120
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
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