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 basis and gitosis
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yasuhiro Asaka
April 09, 2011
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git basis and gitosis
Git の基本と gitosis :-)
Yasuhiro Asaka
April 09, 2011
More Decks by Yasuhiro Asaka
See All by Yasuhiro Asaka
Can't emerge, how to do it ?
yasuhiro
2
760
ELOG and Ebuild Phase Hook
yasuhiro
0
690
Git workflow and activity
yasuhiro
2
490
Let's drink homebrew :-)
yasuhiro
1
130
Other Decks in Programming
See All in Programming
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
350
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
260
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
150
Security issues being discussed on Web Platforms
petamoriken
0
980
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
360
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
280
Heart of Swift Concurrency
koher
0
910
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
210
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
5
3.4k
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
180
Intent as Code
shoppingjaws
6
1k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Crafting Experiences
bethany
1
350
Side Projects
sachag
456
43k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
New Earth Scene 8
popppiees
4
2.6k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
700
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
810
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Limits of Empathy - UXLibs8
cassininazir
1
680
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Abbi's Birthday
coloredviolet
4
10k
Transcript
(JUͷجຊͱ HJUPTJT *UBCBTIJ :BTVIJSP"TBLB
ࣗݾհ v"CPVUNF
:BTVIJSP"TBLBXIPBNJ ‣vϓϩάϥϚ ‣v3VCZ 0CKFDUJWF$ .BD0494FSWFS ‣vখদࡊ͡Ό͕͍͑ΜͲ͏·Ί ‣v"SEVJOP ‣v"QQMF$FSUJGJFE)FMQ%FTL4QFDJBMJTU ‣v3VCZ"TTPDJBUJPO$FSUJGJFE3VCZ1SPHSBNNFS4JMWFS ‣v!HSBVXPFMGDIFO
‣vIUUQXXXHSBVXPFMGDIFOTMBCPSDPN
ٞ v"HFOEB
vHJUPTJTΛ͏ .BD0494FSWFSͰ "DDPVOUɺ3FNPUFSFQPTJUPSZՃ<%FNP> v(JUͷಛ ಛɺجຊػೳ
ಛɺجຊػೳ v(JUͷಛ
ಛ vࢄܕ7$4ɺϩʔΧϧϦϙδτϦɾϒϥϯν vΠϯσοΫε vίϚϯυ͕ଟ͍ ศརෳࡶ vߴ [MJCѹॖɺHJUϓϩτίϧɺϚʔδ தԝूܕ ࢄܕ
ӡ༻ํ๏͍ͩ͠ ରଟ
master vϩʔΧϧϒϥϯν 4JOBUSBͰΈ͔͚ͨྫ POHJUIVC ࣮ݧతͳ ଞͷਓʹӨڹ͠ͳ͍ ϒϥϯνΛ؆୯ʹ࡞ΕΔ ฏߦͨ͠࡞ۀ͕ਐΊΒΕΔ ෳίϛοτʹ·͕ͨΔཧతͳมߋͷ୯ҐϦϦʔε
vΠϯσοΫε ίϛοτͱϫʔΫπϦʔͷதؒʹҐஔ εςʔδϯάΤϦΞͱݺΕΔ εςʔδɾΞϯεςʔδͯ͠ɺίϛοτ͢ΔͨΊͷ༰Λ࡞Δॴ ΠϯσοΫεʹؚ·ΕΔҰ෦ ϋϯΫ ͚ͩΛίϛοτͰ͖Δ $PNNJU *OEFY 8PSLJOHUSFF
HJUBEE HJUDPNNJU
Awesome Terminal - bash - ⌘ 1 $ mkdir test
&& cd test $ git init # => ॳظԽ Initialized empty Git repository in /path/to/test/.git/ $ echo test > test.txt $ git status # => ঢ়ଶͷ֬ೝ # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # test.txt nothing added to commit but untracked files present (use "git add" to track) $ git add -A # => εςʔδϯά $ git status # => ঢ়ଶͷ֬ೝ # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: test.txt # $ git commit -m ‘created test.txt’ -m ‘initial commit !’ # => ίϛοτ [master (root-commit) a7d81b8] created test.txt 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 test.txt
vࢄܕͷϫʔΫϑϩʔ ΫϩʔϯϦϞʔτ͔Βྺ࢙͝ͱऔಘ ฤू εςʔδϯάΠϯσοΫεʹՃ ίϛοτϩʔΧϧϦϙδϦه ϓογϡϦϞʔτϦϙδτϦه ϑΣονϦϞʔτͷมߋͷऔಘ ϚʔδϫʔΩϯάπϦʔɺϒϥϯνϚʔδ ϦϙδτϦ࡞ϫʔΩϯάπϦʔͷมߋΛه ϓϧϑΣονͯ͠Ϛʔδ
ϦϞʔτͷมߋऔΓࠐΈ ·ͨ
جຊػೳ (JUʹݶΒͣ vཧతͳෳϑΝΠϧʹ·͕ͨΔมߋͷه vҎલͷίϛοτʹΔ vมߋཤྺΛௐΔ vͳͥͱ୭͕ͷه Awesome Terminal - bash
- ⌘ 1 $ git config -l # => svn info ʹ૬ user.name=grauwoelfchen
[email protected]
color.ui=auto # => Χϥʔදࣔ core.autocrlf=input # => ίϛοτ࣌ʹվߦίʔυΛLFʹἧ͑Δ core.excludesfile=/Users/grauwoelfchen/.gitexclude # => ڞ௨ͷແࢹઃఆϑΝΠϧ core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true core.ignorecase=true remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
[email protected]
:foo.git # => ϦϞʔτϦϙδτϦ remote.moxssg.fetch=+refs/heads/*:refs/remotes/moxssg/*
[email protected]
:foo.git # => ϦϞʔτϦϙδτϦ
Awesome Terminal - bash - ⌘ 1 $ git log
-3 -p Gemfile # => ‘Gemfile’ ͱ͍͏ϑΝΠϧΛѻͬͨίϛοτͷ༰Λ3ͭ commit 9d3f4bc38f2d89d98567af017cf0327626e4effa Author: grauwoelfchen <
[email protected]
> Date: Sun Apr 3 23:39:49 2011 +0900 specified version of maruku gem. diff --git a/Gemfile b/Gemfile index 99fa1f0..df7bac2 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,7 @@ gem 'bson_ext', '~> 1.2' gem 'data_mapper' gem 'mongoid_taggable' gem 'will_paginate', '~> 3.0.pre2' -gem 'maruku' +gem 'maruku', '~> 0.6.0' group :development do gem 'rspec', '2.5.0' commit 878ecc909708a46dfc1c85b23ed2c344b5343032 : vมߋཤྺΛௐΔ vͳͥͱ୭͕ͷه
Awesome Terminal - bash - ⌘ 1 # ࢦఆͨ͠ϑΝΠϧʹؔ࿈͢ΔίϛοτΛௐΔ $
git rev-list --all Gemfile | wc -l 6 # ࢦఆͨ͠ϑΝΠϧͷ֤ߦͷมߋ͕Ͳͷίϛοτ͔Β͖͔ͨΛௐΔ $ git blame Gemfile 497c0e86 (jobs 2011-03-09 11:57:22 +0900 1) source :gemcutter 497c0e86 (jobs 2011-03-09 11:57:22 +0900 2) 878ecc90 (jobs 2011-03-22 03:20:17 +0900 3) gem 'sinatra', '~> 1.2.0' 497c0e86 (jobs 2011-03-09 11:57:22 +0900 4) gem 'haml', '3.0.25' 497c0e86 (jobs 2011-03-09 11:57:22 +0900 5) gem 'mongoid', '2.0.0.rc.7' d2560ba3 (jobs 2011-03-21 11:59:52 +0900 6) gem 'bson_ext', '~> 1.2' # ಛఆͷϑΝΠϧʹ͓͚Δɺ͋ΔίϛοτͰͷมߋ༰ΛௐΔ $ git show HEAD~3 Gemfile commit 9d3f4bc38f2d89d98567af017cf0327626e4effa Author: grauwoelfchen <
[email protected]
> Date: Sun Apr 3 23:39:49 2011 +0900 specified version of maruku gem. diff --git a/Gemfile b/Gemfile index 99fa1f0..df7bac2 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,7 @@ gem 'bson_ext', '~> 1.2' gem 'data_mapper' -gem 'maruku' +gem 'maruku', '~> 0.6.0'
มߋͷݕHJUCMBNF ྺ࢙ͷॻ͖͑HJUSFCBTF ϫʔΫπϦʔͷมߋऔΓফ͠HJUDIFDLPVU ΠϯσοΫεͷมߋऔΓফ͠HJUSFTFU ίϛοτͷมߋऔΓফ͠HJUSFTFUIBSE ίϛοτͷଧͪফ͠HJUSFWFSU มߋΛҰ࣌ԣʹஔ͍͓ͯ͘HJUTUBTI ϒϥϯνͷϚʔδHJUNFSHFCSBODI໊ ϩʔΧϧϒϥϯν࡞HJUDIFDLPVUCCSBODI໊ ϦϞʔτͷϒϥϯνআHJUQVTI<SFNPUF>CSBODI໊
vΑ͘͏ίϚϯυ vΑ͘͏ϑοΫ QSFDPNNJUϑοΫ ίϛοτͷ༰νΣοΫͳͲ DPNNJUNTHϑοΫ ϝοηʔδͷ౷ҰͳͲ QPTUVQEBUFϑοΫ QVTIΛड͚ͯσϓϩΠͤͨ͞Γ
vଞͷࢄ7$4ͱൺֱϦΫΤετ͍͖ͨͩ·͕ͨ͠ ίϚϯυɺπʔϧͷҧ͍ͦ͋͜Εɺ ϫʔΫϑϩʔ͋Μ·ΓҧΘͳ͍ɻͱࢥ͏ svn͔ΒͷΓସ͑ઌʹbzrΛݕ౼͢ΔͳͲʢ࠷ऴతʹhgʹͳͬͨ‥ʣ IUUQUPHFUUFSDPNMJ ࢄόʔδϣϯཧGit/Mercurial/Bazaarపఈൺֱ IUUQXXXBUNBSLJUDPKQGKBWBSFOTBJEFWUPPM EFWUPPM@IUNM
None
େͳͷπʔϧͷ༏ྼͰͳ͘ Ͳ͏͏͔ ͍͍Θ͚
.BD0494FSWFSΠϯετʔϧ vHJUPTJTΛ͏
త χʔζ vTTIͰηΩϡΞʹ௨৴͍ͨ͠ vެ։ݤͷొ͕ࡶ vγΣϧΞΫηεͤͨ͘͞ͳ͍ vϦϞʔτϦϙδτϦ࡞Λ؆୯ʹ͍ͨ͠ vϦϙδτϦ୯ҐͰΞΫηεݖΛઃఆ͍ͨ͠
త χʔζ vTTIͰηΩϡΞʹ௨৴͍ͨ͠ vެ։ݤͷొ͕ࡶ vγΣϧΞΫηεͤͨ͘͞ͳ͍ vϦϞʔτϦϙδτϦ࡞Λ؆୯ʹ͍ͨ͠ vϦϙδτϦ୯ҐͰΞΫηεݖΛઃఆ͍ͨ͠ ˠHJUPTJTBENJOHJUͰཧ
vIPNFHJU͕6TFSTHJUʹͳΔ v6TFSTHJUCBTISDͰHJU ίϚϯυ ύε௨͢ v4FSWFS"ENJOͰHJUϢʔβʹ44)ΛڐՄ 0494FSWFSͷ߹ Awesome Terminal - bash
- ⌘ 1 # gitosis Πϯετʔϧ $ python --version Python 2.5.1 $ git clone git://eagain.net/gitosis.git $ cd gitosis $ sudo python setup.py install ... # Ϣʔβ࡞ # dscl . -create /Users/git # dscl . -create /Users/git UserShell /bin/bash # dscl . -create /Users/git RealName "git" # dscl . -create /Users/git NFSHomeDirectory /Users/git # dscl . -create /Users/git UniqueID xxx # dscl . -create /Users/git PrimaryGroupID xxx # createhomedir -b -u git
Awesome Terminal - bash - ⌘ 1 # ͢͠Ͱʹཧ͍ͯ͠ΔϦϙδτϦ͕ͨͪͲ͔͜ʹ͋Ε $
ln -s /srv/repos/git /Users/git/repositories $ sudo chown -R git /Users/git/repositories # ϩʔΧϧͰ (ཧऀͷެ։伴Λసૹ͓ͯ͘͠) $ scp ~/.ssh/id_rsa.pub
[email protected]
:/tmp/git # => ϩʔΧϧϚγϯ ... # gitosis ॳظԽ $ sudo -H -u git gitosis-init < /path/to/id_rsa.pub Initialized empty Git repository in /srv/repos/git/gitosis-admin.git/ Reinitialized existing Git repository in /srv/repos/git/gitosis-admin.git/ ... # post-update ϑοΫͷΞΫηεݖमਖ਼ $ sudo chmod 755 /srv/repos/git/gitosis-admin.git/hooks/post-updat # git ίϚϯυͷ PATH Λ௨͢ $ touch ~/.bashrc $ echo PATH=/usr/local/bin:\$PATH > .bashrc # => brew install git ͍ͯͨ࣌͠ $ echo export PATH >> .bashrc # Πϯετʔϧྃ !! # ಈ࡞֬ೝɺϢʔβՃɺϦϙδτϦՃͷσϞ $ sudo demo
Awesome Terminal - bash - ⌘ 1 $ exit logout
[My LT completed] # ͋Γ͕ͱ͏͍͟͝·ͨ͠