Adding files to Subversion
Tuesday, November 21st, 2006I picked up this tip when I was beginning to work with Ruby on Rails and Subversion. I added the following alias to my .profile file
alias svnaddall=’svn status | grep “^\?” | awk “{print \$2}” | xargs svn add’
This command takes all files in the present directory and flags them to be added in the next commit. This saves adding each of the files one-by-one. You don’t just have to use the command for Rails either- use it for everything. I do!
Technorati Tags:
OS X, Ruby on Rails, Subversion