Subversion笔记

在dreamhost的主机上配置subversion
http://wiki.dreamhost.com/index.php/Subversion

通过SSH和TortoiseSVN访问subversion服务器
http://tortoisesvn.sourceforge.net/?q=node/5

在Linux/Unix服务器上生成SSH密钥
cd ~ssh-keygen -b 1024 -t rsa -N SomeLongTextForPassphrase -f rsakeymkdir .ssh
mv rsakey.pub .ssh/authorized_keys
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
最后仍需通过puttygen进行格式转换。(通过putty工具包中的pageant,配置authentication agent认证代理,putty会自动从pageant取得认证密钥)

最后通过svn+ssh://mysiteSSH/home/myusername/svn/myproject访问服务器。其中mysiteSSH为服务器域名或putty中存储的session名;

For overnight checkouts
screen
svn co &> ~/log_co &
^ad

《使用Subversion进行版本控制》,O’Reilly
http://svnbook.red-bean.com/
SVN使用技巧
http://xyzboard.com/?q=node/110

subversion中的关键字替换
http://svnbook.red-bean.com/en/1.0/ch07s02.html
$Date$
$Rev$
$Author$
$URL$
$Id$
svn propset svn:keywords “LastChangedDate Author” weather.txt
svn propedit svn:ignore somedir
find ./ -name \*.tcl xargs svn propset svn:keywords “Date Author Id”

subversion客户端配置文件
### Section for configuring miscelleneous Subversion options.
[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its `status’ output.
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#*

enable-auto-props = yes
[auto-props]
*.c = svn:keywords=Date Author Id
*.cc = svn:keywords=Date Author Id
*.cpp = svn:keywords=Date Author Id
*.py = svn:keywords=Date Author Id
*.tcl = svn:keywords=Date Author Id


相关文章

Speak Your Mind

If you want a pic to show with your comment, go get a gravatar!