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
[endless_lt] gitのalias使ってる?[無限LT@3]
Search
yodaaa
September 15, 2019
89
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[endless_lt] gitのalias使ってる?[無限LT@3]
yodaaa
September 15, 2019
More Decks by yodaaa
See All by yodaaa
AWAに配属された新卒1年目が 大型機能や新規画面を開発できるようになるまで
yodaaa
0
270
わたしのおうち時間
yodaaa
0
83
OPENRECで内定者バイトしたまとめ。
yodaaa
0
5.7k
[endless_lt] 就活もUXの時代![無限LT@3]
yodaaa
1
170
[endless_lt] シャツインしてる男、 正直ダサくない?[無限LT@3]
yodaaa
1
180
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
440
Into the Great Unknown - MozCon
thekraken
41
2.6k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
390
Skip the Path - Find Your Career Trail
mkilby
1
170
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
660
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Designing for humans not robots
tammielis
254
26k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Transcript
gitでalias使ってる? 01
・圧倒的になまけもの ・簡単に設定できる! ・でも、案外設定してないひとおおい! 話そうと思った経緯
git push -u origin masterとか、 git checkout masterとかタイプするのって 正直めんどくさくないですか? >_<
そこで、git alias!
これだけで、git checkout が git c だけでOKになります!
すごい!
まだ、めんどくさい!
git cってとかタイプするのって 正直めんどくさくないですか? >_<
bashのひとは、~/.bash_profile zshのひとは、~/.zprofile に aliasをかこう!! ex) alias g=“git" shellの設定ファイル
これで、g c を入力すると、 git checkout master が実行される!!
すごい!
[alias] b = branch st = status i = init
a = add c = checkout cm = checkout master com = commit -m p = push -u origin master open=!open $(git remote --verbose | head -n 1 | awk '{ print $2 }’) l = log --graph --date=short --pretty=\"format:%C(yellow)%h %C(cyan)%ad %C(green)%an%Creset%x09%s %C(red)%d%Creset\" la = log --oneline --decorate --graph --branches --tags --remotes わたしのalias