双击&命令提示符:svn.exe: 运行已保存的svn.exe 1.create: 创建svn文件夹 并开始管理 2.status: 查看(现在与原来的)状态变更 无=已管理未修改 M=已管理修改 G=已管理丢失 ?=未管理 3.add filename: ?→ + 新增未受管理文件(已管理不操作) 4.delete filename: 删除 已管理未修改&已管理修改 → - G(~) 5.update [version]: 没有[version]-update 默认 有[version]-更新到[version]版本 [version]=1,2,3,4,etc (可恢复历史记录) if(状态为M|G|-|+)---update失败 printf“there changes” else 不返回 6.commit [log]: 提交修改&保存 [log]=“an explanatory string” if(svn更改)---commit成功 返回一个版本号 [version]=1,2,3,4,etc else if(未更改)----commit失败 printf“no modification” 7.revert:还原所有 =update 默认 (~) 8.log [version] if [version]=n 显示n的log version: n log: modify something if 无[version] 显示根到当前版本now分叉上的所有log version: 1 log: first commit   version: 2 log: second commit   version: now<- ('<-'为当前版本标识) log: modify something 9.attribute [version]:显示属性 if 无[version] version: now<-(当前版本) file test.h test.cpp readme.txt log: now-th commit if [version]=n version: n file test.h test.cpp readme.txt log: n-th commit 10.quit:退出
2021-12-14 13:34:38 18KB svn git tourtoisesvn
1