Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding multiple files to wordpress svn

Tags:

svn

addition

Is their a way to add all files that arent present with svn example.

If i try to run

svn add *

i get this error

svn: warning: 'css' is already under version control
svn: warning: 'images' is already under version control
svn: warning: 'js' is already under version control
svn: warning: 'readme.txt' is already under version control
svn: warning: 's3audible.php' is already under version control
svn: warning: 'skin' is already under version control

so this means i have to add all new files individually i.e

test:trunk sam$ svn add js/colorpicker.js
A         js/colorpicker.js
test:trunk sam$ svn add js/layout.js
A         js/layout.js
test:trunk sam$ svn add css/colorpicker.css 
A         css/colorpicker.css
test:trunk sam$ svn add css/layout.css 
A         css/layout.css

etc etc

I want to just add all

any suggestions?

like image 554
DCHP Avatar asked Jun 21 '26 01:06

DCHP


2 Answers

You can try with --force option. Passing the --force option makes svn add recurse into versioned directories:

svn add * -–force

I hope it helps.

like image 99
CsaByte Avatar answered Jun 23 '26 12:06

CsaByte


You can add more than one at once e.g. svn add js/colorpicker.js js/layout.js or svn add js/* css/* but I don't think there's an easy way to just add all missing files. You could hack one together using svn status, e.g.

svn status |sed -ne "s/^\?//p"

should print a list of changed files, then

svn add `svn status |sed -ne "s/^\?//p"`

should add them.

like image 43
Rup Avatar answered Jun 23 '26 12:06

Rup



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!