One great thing about running Windows is TortoiseSVN. I makes managing my SVN so easy. One of the problems I’ve ran into on other systems was I had been working for several hours. I would have dozens of new files and with TortoiseSVN it would show me a list of all the new files and I could hit “select all” and commit. However, on Mac I haven’t found an SVN client that I like, so I just use the terminal commands. There are also times, like when managing a WordPress installation, that WordPress and its plug-ins could auto update. I wanted to be able to add all the new files on the linux server back into the svn.
I never could figure out how to do it until I read a comment at a blog post:
svn st --ignore-externals | grep ^? | sed 's/\?/svn add/' | sh
Man, shell is just awesome. This is better than the first suggestion of using “svn add –force *” because it would add ignored files as well. Hope this helps someone and makes them happy like I am now!
Related Posts
- XAMPP for Mac – My Frustrations & Solutions These last few days I’ve been trying to get XAMPP to work on my MacBook Pro these last couple of days and it has been frustrating! It seemed I kept running into more and more problems. For those who don’t know, XAMPP is tool for developers to run a LAMP...
- List of 50 PHP Tools Found a great article listing popular tools that every PHP developer should be away of. Here is an excerpt: PHP is one of the most widely used open-source server-side scripting languages that exist today. With over 20 million indexed domains using PHP, including major websites like Facebook, Digg and WordPress,...
- Redesigning blog…. Alright, I figure it is about time I design my own WordPress theme. Most likely in the next few months I’m going to need to design some WordPress themes. Hopefully I’ll get able to do a good job…....
- Aptana Studio – PHP IDE Alternative to PDT, Zend Studio The other day I ran into another option as an IDE for PHP. If you’ve been following my blog, I’ve been a big user of Eclipse PDT (http://www.eclipse.org/pdt/) and Zend Studio (http://www.zend.com/en/products/studio/). There is a third one to add to the list, Aptana Studio. It is built on-top of the...
- Speaking: Utah PHP Usergroup – Streamlined Web Development Next Thursday, November 20th, at 7 PM Mountain Time (9PM EST, 6PM PST) I will be speaking at the Utah PHP Usergroup meeting on “Streamlined Web Development.” I will be speaking with Kevin Carter from Code Greene. Here is the annoucement on the UPHPU website: I’m very pleased to announce...
Try smartSVN, this allows to select the unversioned files (of course, from subdirectories, too) and invoke add.