I am using SVN and have a repository on a remote machine. Sometimes, when working on my local machine I realize that I need to add some new files to the repo. The usual procedure I know would then be:
But this can be a bit tedious. I wonder if somehow, I can omit steps 1 to 3 and import the "interesting" file to SVN directly without necessity of checking out the repo first?
In order to place your project under version control you will need to import your existing files and folders into your Subversion repository: Use the repository browser to locate and select the folder into which your files should be imported. Select the File > Import… menu item.
If you just want to export the file, and you won't need to update it later, you can do it without having to use SVN commands. Using TortoiseSVN Repository Browser, select the file, right click, and then select "Copy URL to clipboard".
If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.
Perhaps svn import is what you want ? Check the documentation for details.
You can checkout only the folder where the new files go, add the new files and commit.
Seems to me like what you're doing is dangerous. If you don't update from SVN first and re-compile the code, you might be introducing bugs or break the build. Maybe the interface of that class you're using has changed in the repository!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With