Can i copy paste the entire code folder in SVN repository

I am building a website and my public_html is under SVN. Now i dont know much about SVN.

This weekend i copied the whole site to my windows computer and i made few changes to site.

I have made changes under SRC directory.

Now can i just copy paste that whole folder in main webiste SRC folder. As that folder is shared on my windows XP , i can just replace that. Or i can remove the old one and replace with this new one.

I just don't want to break the SVN . which method is safe , so that other coders on diff folders don't get affected

Answers


Best way is to commit / ci your changes instead of deleting the ones on repository.

Next time you MOVE files, use SVN MOVE command . Also, you might consider updating to Git?

Here is a link to SVN commands for you to get started :)

http://www.linuxfromscratch.org/blfs/edguide/chapter03.html#ch03-introduction


As long as you do not touch the .svn folder(s) you should be fine. Copying another file with the same name is just like editing it. Once you copied the files, you can commit your changes.

However: If other people may have made changes, then make sure that you copy your files BEFORE updating from the repository (then the update will try to merge with your changes)! If you copy your files onto the already updates files, you will overwrite the other peoples changes - effectively undoing them (but you will not notice, because you can commit).


The "SVN Way" is do a commit (svn commit) of the SRC directory from your Windows computer and then do an update (svn update) in the SRC directory inside the server *public_html* directory.

When you copied the SRC directory you cloned the working copy. You can just used them both as normal working copies and use the repository to sync them.


If you copy & paste you should delete all .svn files and folder in public_html and subdirectories.

...or you could install an SVN client on the server and run "svn update" (you may want to restrict the .svn files & folders from being accessed by the general public)


Need Your Help

Lifetime of rvalue ref

c++ c++11 scope rvalue-reference rvalue

The code below works fine and as far as I understand every time the function is called, a local variable (i.e. vector) will be created and the ownership will be transferred in a rvalue reference at...

django - 2 views in one template

django-views

i have 2 different views which are getting filtered data from db. and i have to use these views in one template file(admin.html) but i cant use multiple views on a page at same time.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.