SVN: How to commit only modified files via command line

advertisement

apple macHave 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:-

  • 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:

How to install apache, php, mysql with macport in Mac OS X
How to send email using different profile in Apple Mail
Free Anti Virus for Mac OS X - ClamXav
How to turn on Firewall in Mac?
How to enable file sharing in Mac OS X?
How to disable ssh root login?
How to move Firefox tab bar to bottom
WordPress: How to create left sidebar template in TwentyEleven theme?






Leave a Reply