Last active
August 29, 2015 14:22
-
-
Save magicianzrh/c6814732a1dd4887411e to your computer and use it in GitHub Desktop.
svn revert all shell for mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# svn全部回滚 | |
function svn_revert_all { | |
svn st | grep "^M" | cut -b 9- | while read FILENAME; | |
do | |
FILENAME=`echo ${FILENAME} | sed 's/ /\\\ /g'` | |
svn revert ${FILENAME} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment