快速保存当前修改 恢复到上一次提交 然后再恢复当前修改

svn st
M       pom.xml
M       src/main/java/com/foo/coupon/service/CouponService.java

svn diff > ~/diff.txt

svn revert -R .
Reverted 'src/main/java/com/foo/coupon/service/CouponService.java'
Reverted 'pom.xml'

svn st
mvn deploy

svn patch ~/diff.txt 
U         pom.xml
U         src/main/java/com/foo/coupon/service/CouponService.java

svn st
M       pom.xml
M       src/main/java/com/foo/coupon/service/CouponService.java

你可能感兴趣的:(svn)