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

浏览: 127 发布日期: 2016-08-18 分类: svn
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

返回顶部