Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting new file added to subversion without updating whole folder

What I want to do is be able to add a file to my folder which is under Subversion source control in my local computer and then commit it. no problem up to here. On the server I want to get the new file using Subversion but without having to do an 'Update' to whole folder (which may update a bunch of unrelated files).

You see, if I make a change to an existing file - I go to the server mark that file and do 'SVN Update' (using TortoiseSVN) but if I added a new file on my local computer I have no way of just getting it to the server without doing 'SVN Update' on the whole folder

like image 599
adinas Avatar asked Jan 13 '09 09:01

adinas


People also ask

Does SVN update overwrite local changes?

Subversion is pretty smart about updating and never just overwrites files that have local changes with copies from the repository. The most important thing to take away from this section is: If you collaborate with others on one repository, remember to update your working copy regularly.

How do I move a file from one directory to another in SVN?

Moving files and folders select the files or directories you want to move. right drag them to the new location inside the working copy. release the right mouse button. in the popup menu select Context Menu → SVN Move versioned files here.

How do I link a folder to a SVN repository?

Right-click the folder and select SVN Checkout… Enter the URL to your repository and select OK. Enter your username and password.


1 Answers

You can add a filename to the svn up command even if that file doesn't exist in the folder yet (as long as it exists in the repository):

svn up newFile.txt

Edit: Using TortoiseSVN I think you go to "check for modifications" then click "Check repository", then right click -> "update" on the new file.

like image 88
Greg Avatar answered Oct 25 '22 11:10

Greg