Skip to content

Instantly share code, notes, and snippets.

@xentek
Created November 19, 2012 02:57
Show Gist options
  • Save xentek/4108719 to your computer and use it in GitHub Desktop.
Save xentek/4108719 to your computer and use it in GitHub Desktop.
Subversion bash aliases
# SVN
# set your editor
export SVN_EDITOR="/usr/bin/vi"
# add everything that needs to be added based on results of svn status
alias svnadd="svn st | grep \? | awk '''{print \"svn add \"$2 }''' | bash"
# show svn status, sans the noise from externals
alias svnst='svn st --ignore-externals'
# edit svn:externals for the current folder in the editor
alias svnext='svn pe svn:externals .'
# edit svn:ignore for the current folder in the editor
alias svnign='svn pe svn:ignore .'
# recursively delete .svn folders from current directory
alias delsvn="find . -name .svn | xargs rm -rf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment