Gitを追いかける
初期に git clone でバイナリーを引っ張ってきたのは良いが
その後のUpdateを追いかける方法をメモ
いや、git全然触った事ないから、さっぱりわからんので・・・
現在のブランチを確認
# cd p2-php # git branch -v * master e12a5df 使用するDB_DataObjectのバージョンを1.11.2に
自分のローカルファイルを修正すると差分が発生するので確認
# git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: conf/conf_admin.inc.php # no changes added to commit (use "git add" and/or "git commit -a") # git diff --- a/conf/conf_admin.inc.php +++ b/conf/conf_admin.inc.php @@ -88,7 +88,7 @@ $_conf['updatan_haahaa'] = 1; // (1) $_conf['p2status_dl_interval'] = 7; // (7) // <83>X<83><8C><83>b<83>h<83>T<83>u<83>W<83>F<83>N<83>g<88><U+A5D7><82>?f<83>t<83>H<83><8B><83>g -$_conf['display_threads_num'] = 150; // (150) +$_conf['display_threads_num'] = all; // (all) // <94><C2> menu <82>?L<83><83><83>b<83>V<83><85><82><F0><8D>X<90>V<82><B9><82><B8><82>??<9D><82> $_conf['menu_dl_interval'] = 1; // (1)
設定に問題がなければ 俺コミット
# git commit -a -m 'conf_admin.inc.php' [master 3aacc12] conf_admin.inc.php Committer: root <root@rep2.(none)> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly: git config --global user.name "Your Name" git config --global user.email you@example.com If the identity used for this commit is wrong, you can fix it with: git commit --amend --author='Your Name <you@example.com>' 1 files changed, 1 insertions(+), 1 deletions(-)
ログを確認
# git log commit 3aacc121f6a01ef4dde77e5e27805c159c752ba0 Author: root <root@rep2.(none)> Date: Tue Aug 4 03:20:09 2015 +0900 conf_admin.inc.php commit e12a5dfc32f29015bee8f183eac952e7a2a1229c Author: Ryusuke SEKIYAMA <rsky0711@gmail.com> Date: Tue Apr 23 08:52:11 2013 +0900 使用するDB_DataObjectのバージョンを1.11.2に <省略>
リモートブランチから pull
# git pull --rebase Current branch master is up to date.
rebase を指定しているので origin/master から最新を取り込んで、自分の設定をコミットされなおし