Howto (prop)set SVN:ignore from the command-line !?

Posted: January 13th, 2009 | Author: Mihai Bojin | Filed under: General, PHP, Troubleshooting, Web | Tags: , , , , , , , , , , | No Comments »

If you’re a developer you’ve probably worked with SVN.

And if you’ve worked with SVN you’ve probably had the problem that it’s commiting and updating more than you want.

So here’s a quick way to ignore the files you dislike:

  • If you want to ignore just a file, for example "config.php" from the "config" directory:

svn propset svn:ignore "config.php" /path/to/config

  • If you want to ignore all the files in a directory, for example the "cache" directory:

svn propset svn:ignore "*" /path/to/cache

(quick warning here ! "*" is different from "*.*"; the latter implies that you have files or directories with extensions and it will not match a file/dir with no extension)

  • If you’re an Apple Fanboy like me than this one’s for you; MacOS has the annoying habbit of creating .DS_Store files in every directory, including those under SVN

edit "~/.subversion/config" with your favorite editor (vi, nano or even TextEdit)

search for the line that contains "global-ignores" and add ".DS_Store" at the end of the row

save it and you’re done; no more .DS_Store junk in your repository !

 

I hope this quick guide helps you. I’ve written this because most so called coders out there use tools like TortoiseSVN and have no clue how to use SVN from the command line.

If you have other usefull SVN command-line tips, please share them in the comments !


The 2009 working season begins !

Posted: January 5th, 2009 | Author: Mihai Bojin | Filed under: General | Tags: , , , | 1 Comment »

Mornin’ everybody !

Today marks the new working season of 2009 ! I guess most of you didn’t work from January 1st until today and probably most of you will not even start working today, but there are a few unfortunate ones that will start working.

I wish you all a better year than the one behind us and may all your dreams and hopes come true !

Life is short ! Play more !


Updating the Copyright Notice

Posted: January 5th, 2009 | Author: Mihai Bojin | Filed under: General, Web | Tags: , , , , | No Comments »

Every new year I see a lot of posts about updating the copyright notice and until now I always tend to forget updating to the current year. But not this year !

This year I’ve updated all my running websites and before everybody goes to work on Monday 5th of January 2009,  would have posted this short reminder for everybody to see and act accordingly (if it’s the case) !

Did you update your website’s copyright notice ?


Page 3 of 4«1234»
Clicky Web Analytics