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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Agile that works and the tools we love
rasmusluckow
331
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
Producing Creativity
orderedlist
PRO
348
40k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
390
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Rails Girls Zürich Keynote
gr2m
96
14k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
A Tale of Four Properties
chriscoyier
163
24k
Amusing Abliteration
ianozsvald
1
240
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