I would like to add a file to a remote svn repository without checking out the project.
svn add
requires the project to be checked out
svn import
seems to only import directories
Any ideas?
Adding a File or Directory To add an existing file to a Subversion repository and put it under revision control, change to the directory with its working copy and run the following command: svn add file… Similarly, to add a directory and all files that are in it, type: svn add directory…
Open your project folder. You will see question marks on folders that are associated with your VS project that have not yet been added to Subversion. Select those folders using Ctrl + Click, then right-click one of the selected items and select TortoiseSVN > Add. Select OK on the prompt.
I think it got it. The secret is to include the file name on the url
svn import -m "Adding just a file" file_name http://path/to/svn/repo/file_name
You should be able to use svn import
:
$ svn help import import: Commit an unversioned file or tree into the repository.
Import is able to add individual files and trees to a 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