I’m new to SVN and learning how to exclude a directory from svn for my project. If you have cache or session directory in your project, you might want to exclude those directory from SVN repo. SVN allow you to exclude directory from your repo by using the command “svn propset”.
To exclude a directory from SVN, follow the steps below:-
Advertisements
We are demonstrating how to exclude /home/myproject/cache_dir content from current repo. Assuming we already added cache_dir into repo earlier.
- First, change directory to your working project directory.
$ cd /home/myproject
- We will need to delete project cache data from our svn first.
/home/myproject/$ svn delete cache_dir/*
- Next you call this command to exclude the directory from SVN:
/home/myproject/$ svn propset svn:ignore '*' cache_dir/
* please note that you must enter the * between 2 single quote. else it will not work.
- Done. you just exclude cache_dir from your project repo
Credit: Heavymind
Related posts:
How to create App Tab in Firefox 5
How to hide .svn folders in Eclipse or Aptana
How to send email using different profile in Apple Mail
How to print screen in Nokia N900
How to remove Antivirus 2008 and 2009
PDF to Word Converter for Mac - Giveaway 5 licenses
How to stop faces scanning in Picasa 3
Free FTP Client for Mac OS X / Win XP / Vista
Share this with your friends:-
Thanks! Helped a lot!
It has to be done before making a commit, thank you for making me remember this 😀
do this at the client machine.
Do I have to do this on the server or in the client station?