gitã§ã®branchéçº
æè¿branchãåãã¦éçºãããæ©ä¼ããã£ãã®ã§åå¿é²
1.ãã¼ã«ã«ã®ãã©ã³ããä½æãã
ãã¼ã«ã«ãã©ã³ãã®ç¢ºèª
# git branch * master
ãã¼ã«ã«ãã©ã³ããä½æãã
# git branch l_hoge
â»ç·¨éä¸ã®ãã®ï¼ã³ããããã¦ãªããã®ã¨ãï¼ã¯ãã¹ã¦ãã©ã³ãã«åæ ããã¾ã
# git branch * master l_hoge
2.ãªã¢ã¼ããã©ã³ãã®ä½æ
ãªã¢ã¼ããã©ã³ãã®ç¢ºèª
# git branch -r origin/HEAD -> origin/master origin/master
ãªã¢ã¼ããã©ã³ããä½æãã
# git push origin r_hoge
ãªã¢ã¼ããã©ã³ãã®å確èª
# git branch -r origin/HEAD -> origin/master origin/master origin/r_hoge
3.ãã¼ã«ã«ãã©ã³ãã«åãæ¿ãã
ãã¼ã«ã«ãã©ã³ãã®ç¢ºèª
# git branch * master l_hoge
ãã¼ã«ã«ãã©ã³ãä½æ
# git checkout l_hoge
ãã¼ã«ã«ãã©ã³ãã®å確èª
# git branch master * l_hoge
4.ãã¼ã«ã«ãã©ã³ããããªã¢ã¼ããã©ã³ãã«pushãã
# git commit -a -m 'test commit'
ãªã¢ã¼ããã©ã³ãã«push
# git push origin r_hoge
5.ä»ã®äººããªã¢ã¼ããã©ã³ãã使ç¨ãã
ãªã¢ã¼ããã©ã³ã確èª
# git branch -r origin/HEAD -> origin/master origin/master
originã®ãªã¢ã¼ããã©ã³ãã®æ å ±ãåæ
# git fetch origin
ãªã¢ã¼ããã©ã³ãå確èª
# git branch -r origin/HEAD -> origin/master origin/master origin/r_hoge
l_hogeã«ãªã¢ã¼ããã©ã³ãããã§ãã¯ã¢ã¦ã
# git checkout -b l_hoge origin/r_hoge
ãã¼ã«ã«ãã©ã³ã確èª
# git branch * master l_hoge
6.ãã¼ã«ã«ãã©ã³ãã«ãªã¢ã¼ããã©ã³ãããpullãã
# git pull origin r_hoge
6.masterã«ãã¼ã¸ãã
# git pull origin r_hoge
ã³ãã³ã
ãã¼ã«ã«ãã©ã³ãã®ç¢ºèª git branch ãªã¢ã¼ããã©ã³ãã®ç¢ºèª git branch -r ãã©ã³ãã®ç¢ºèª git branch -a ãã¼ã«ã«ãã©ã³ããä½æãã git branch l_hoge ãªã¢ã¼ããã©ã³ãã®ä½æ git push origin r_hoge ãã©ã³ãã®åãæ¿ã git checkout l_hoge git checkout master ãªã¢ã¼ããã©ã³ãã«ããã·ã¥ git push origin r_hoge ãªã¢ã¼ããã©ã³ããããã« git pull origin r_hoge ãªã¢ã¼ããããã§ãã¯ã¢ã¦ã git checkout -b l_hoge origin/r_hoge masterã§ãã¼ã¸ git pull origin r_hoge ãªã¢ã¼ãã§ã®ãã¼ã¸ git pull origin master
Perlã§CIã調ã¹ã¦ã¿ã
ãã¡ã®ããã¸ã§ã¯ãã§ãç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³(ContinuousIntegration)ãåãå ¥ãããã¨æã調æ»ã
Ukigumo
http://d.hatena.ne.jp/tokuhirom/20110913/1315871769
http://hirobanex.net/article/2011/10/1319278337
Jenkins
http://build-shokunin.org/
http://d.hatena.ne.jp/nekonokataomoi/20110509/1304946818
http://alpha.mixi.co.jp/blog/?p=2811
smolder
http://www.slideshare.net/mpeters/smolder-introduction
http://64p.org/memo/smolder.html
http://d.hatena.ne.jp/tokuhirom/20090410/1239320254
Test::Chimps
ããã©ãããã£ã½ãã®ã§ãã¹
ä½ããå§ããã£ããæãã¦ãã ãã
以ä¸
tmuxã使ã£ã¦ã¿ã
ãããããªã¨ãã§è¨äºã«ãªã£ã¦ããã®ã§æ¸ãå¿ è¦ã¯ãªãããã¨ããããã¡ã¢ã
screenã§ç¸¦åå²ããããã¦æ¢ãã¦ããããtmuxãã¯ãã£ã¦ããã¨ã®ãã¨ã ã£ãã®ã§è©¦ãã¦ã¿ãã
tmux-1.5.0
ã¤ã³ã¹ãã¼ã«ã¯libeventã®ãã¼ã¸ã§ã³ãä½ãã£ãã®ã§ã¢ããã°ã¬ã¼ãã
ä»åº¦ã¯memcachedãåããªããªã£ãã®ã§ã¢ããã°ã¬ã¼ãã
â»åè
http://d.hatena.ne.jp/jonki/20100805/1280980895
è¨å®ãã¡ã¤ã« .tmux.conf
/usr/share/doc/tmux-1.2/examples/screen-keys.conf
ããã«ããç¨åº¦ç¨æãã¦ããã
ããããªããã°ãããããããªãã®ãã³ãã¼ãã¦ããã
ã¨ããããè²¼ãã
# prefixãã¼ãctrl+tã¸å¤æ´
set-option -g prefix C-t
unbind-key C-b
bind-key C-t send-prefix
# prefix + r ã§è¨å®ãã¡ã¤ã«ãåèªã¿è¾¼ã¿
bind r source-file ~/.tmux.conf
# prefixãã¼é£æã§ç´åã®ã¦ã£ã³ãã¦ã¨åãæ¿ã
unbind C-t
bind-key C-t last-window
# copyã¢ã¼ãã®ãã¼ãã¤ã³ããvi風ã«
set-window-option -g mode-keys vi
# æ¥æ¬èªå¯¾å¿
set-window-option -g utf8 on
# ã¦ã£ã³ãã¦ååºå®
set-window-option -g automatic-rename off
# ãã¦ã¹ã§ç§»å
set-option -g mouse-select-pane on
# çªå·åºæºå¤
set-option -g base-index 1
set -g history-limit 100000#---------------------------------------
# è²è¨å®
set -g status-bg colour7
set -g status-fg black
set -g status-attr dim
# å·¦é¨:whoami@hostname
set -g status-left '#[fg=green,bold][#20(whoami)@#H]#[default]'
# å³é¨:[æ¥æ]
set -g status-right '#[fg=green,bold][%Y/%m/%d(%a)%H:%M]#[default]'
set -g message-attr bold
set -g message-fg white
set -g message-bg redset -g pane-active-border-fg white
set -g pane-active-border-bg blackset-window-option -g mode-bg white
set-window-option -g mode-fg black
set-window-option -g window-status-bg black
set-window-option -g window-status-fg white
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg colour12
set-window-option -g window-status-current-attr bold#-------------------------------------
# ç´åã®ã¦ã£ã³ãã¦
bind C-t last-window# åå²ãã¦ãããã¤ã³ãããããWindowã«
bind b break-pane
# ãã¤ã³ã®ç¸¦åå²
bind s split-window -v
# ãã¤ã³ã®æ¨ªåå²
bind v split-window -h# åå²ç»é¢ã¸ã®ç§»åãviã©ã¤ã¯ã«å²å½
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R# ãã¤ã³çªå·è¡¨ç¤º
bind i display-panes# prefix + spaceã§ã¦ã£ã³ãã¦ã®ä¸è¦§è¡¨ç¤º
bind Space choose-window
ããããããã£ã¦è©¦ãã
以ä¸