svnでファイルの更新履歴を確認

dev, svn No Comments »

svnメモ。あるファイルの特定箇所の更新履歴を知りたいとき。

% svn log -v /path/to/file | lv
------------------------------------------------------------------------
r999 | kyokutyo | 2010-01-01 12:12:12 +0900 (金, 01 01月 2010) | 3 lines
変更のあったパス:
   M /path/to/file
   M /path/to/other1
   M /path/to/other2

○○変更

コメントを頼りに該当のコミットのバージョンを知る。ちゃんとコメント書いててよかった。

% svn diff -r 998:999 /path/to/file | lv

1つ前のバージョンと比較して更新箇所を確認。svn logとsvn diffとでタブを分けて見るといい。

プロジェクト開始手順

git, svn No Comments »

やりかたわかんなくなるのでメモ。小規模なWebサイトの例。

svnリポジトリにプロジェクトを追加

$ cd /var/www
$ mkdir project_name
$ cd project_name
$ mkdir img  scripts skin skin/src dir1 dir2
$ touch index.html sitemap.xml dir1/index.html dir2/index.html skin/style.css scripts/project_name.js
$ cd ..
$ svn import project_name --auto-props https://svn.hogehoge.com/svn/hoge/trunk/project_name

gitの設定

$ rm -rf project_name
$ git svn clone https://svn.hogehoge.com/svn/hoge/trunk/project_name

ついでに、FeedBurnerからGoogleへの移行がうまくいかなかったので新しいものにしました。
http://feeds2.feedburner.com/kyokutyo です。よろしくお願いします。

Powered by WordPress | WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS ログイン