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?
You can try with --force option. Passing the --force option makes svn add recurse into versioned directories:
svn add * -–force
I hope it helps.
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.
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