When I want to add a file in a directory using
svn add directory/file.extension
and directory has not been added yet, I get an error that says that directory's node cannot be found and needs to be added first. So I can do
svn add directory --depth=empty
svn add directory/file.extension
Can I automate the last two steps? Perhaps with a fitting parameter to svn add?
Use the --parents
option to svn add
to add intermediate parents:
svn add --parents directory/file
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