SVN Commit specific files

后端 未结 7 1730
野的像风
野的像风 2021-01-29 17:19

Is there any way to commit only a list of specific files (e.q. just one of the list of files that SVN wants to commit).

I\'m working on MAC OS X under Terminal, without

相关标签:
7条回答
  • 2021-01-29 18:18

    Due to my subversion state, I had to get creative. svn st showed M,A and ~ statuses. I only wanted M and A so...

    svn st | grep ^[A\|M] | cut -d' ' -f8- > targets.txt
    

    This command says find all the lines output by svn st that start with M or A, cut using space delimiter, then get colums 8 to the end. Dump that into targets.txt and overwrite.

    Then modify targets.txt to prune the file list further. Then run below to commit:

    svn ci -m "My commit message" --targets targets.txt
    

    Probably not the most common use case, but hopefully it helps someone.

    0 讨论(0)
提交回复
热议问题