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
ローカルLLMを⽤いてコード補完を⾏う VSCode拡張機能を作ってみた
nearme_tech
PRO
0
180
Cap'n Webについて
yusukebe
0
150
Deno Tunnel を使ってみた話
kamekyame
0
260
Vibe codingでおすすめの言語と開発手法
uyuki234
0
130
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.3k
これならできる!個人開発のすゝめ
tinykitten
PRO
0
130
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
140
SwiftUIで本格音ゲー実装してみた
hypebeans
0
510
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
4.2k
JETLS.jl ─ A New Language Server for Julia
abap34
2
460
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
120
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
246
13k
Rails Girls Zürich Keynote
gr2m
95
14k
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.2k
Paper Plane
katiecoart
PRO
0
44k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
2
3.8k
Six Lessons from altMBA
skipperchong
29
4.1k
Utilizing Notion as your number one productivity tool
mfonobong
2
190
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
How to Ace a Technical Interview
jacobian
281
24k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
260
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Code Review Best Practice
trishagee
74
19k
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