Have been looking for simple way to svn commit only modified files via command line for long time. Finally i manage to find a simple solution with just 2 line command and it will be able to commit any type of file status as you like.
To SVN commit the only modified files via command line, follow the steps below:-
Advertisements
- First we need to list out all the modified files
$ svn st | grep "M " | cut -c 8- > modified.txt
** Change the M to other status and you will be able to commit other status
- Now open the modified.txt file and check if the path and files are correct. If the exported file path is broken then you may change the number “8” to other number to fix the exported path.
- Once the path is correct, you may commit thru the modified file
$ svn commit -m "commit only modified files" --targets modified.txt
Happy svn!
Related posts:
FCKEditor - The full feature Web based WYSIWYG HTML Editor
WordPress: How to upload image using script?
How to hide apache2 version number in error page
How to convert Keynote (.key) to Power Point (ppt)
How to merge pdf file in Mac OS X using Preview
How to flush DNS cache in Linux / Windows / Mac
Prestashop 1.5 - How to enable add to cart button at Home Featured Product?
How to turn on Firewall in Mac?
Share this with your friends:-
this worked for me too
Thanks.
This worked for me too.
svn status | cut -c 8- | svn commit -m “hello I did a commit”