Bash function to easily add files to svn


/ Published in: Bash
Save to your folder(s)

Simple function which makes it easy to add files to svn in bash (add this to your .bashrc file).


Copy this code and paste it in your HTML
  1. svnadd(){
  2. svn status| awk /$@/'{print $2}'| xargs svn add
  3. }
  4.  
  5. # usage is simple
  6. svnadd(filename)

Report this snippet


Comments


You need to login to view comments.