I have a pretty large directory /var/www/ on my linux Ubuntu server. In that directory there are a handful of files I want to use subversion on. How can I set this up? Set-by-step would be helpful I’m new to svn.
So far I have don’t this:
svnadmin create --fs-type fsfs /svn
svn mkdir file:///svn/www/ -m "Created www directory"
For example: In my /var/www/ directory there are a lot of files and subdirectories. I only want to use svn on foo.html, bar.php, and a directory example/
after the necessary files are in the svn there how can I make changes and commit them to svn?
I hope that makes sense, thanks!
This should work:
You might also want to do this (still in
/var/www):Edit:
The
svn:ignorepattern hides stuff in the output ofsvn statusONLY IF the item is unknown to svn and would show up as?. You can still add files/dirs with “svn add” and changes to managed dirs/files are still tracked.Since you are interested only in certain files/dirs this seems to be a good default in your case. You can do the same in
exampleif there is stuff you don’t want to version.