Mac使用svn

Mac自带svn,所以直接使用终端工具就可以使用svn。

1. 上传新的代码到服务器

svn import ./youcode svn://xx.xx.xx.xx/path/ --username=xiaoming --password=1234 -m "first commit"

 

2. 从服务器下载

svn checkout svn://xx.xx.xx.xx/path/ --username=xiaoming --password=1234 ./youcode

 

3. 提交更改过的代码到服务器

svn commit [file] -m "modify main.m file"

 

4. 更新服务器的代码到客户端

svn update

 

5. 查看当前文件跟库上比较修改了哪些内容

svn diff [file]

 

6. 查看当前目录修改了哪些文件

svn status [dir]

 

posted @ 2016-02-11 23:17  火星和冥王星的距离  阅读(303)  评论(0)    收藏  举报