SVN Commit specific files

后端 未结 7 1729
野的像风
野的像风 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:00

    Sure. Just list the files:

    $ svn ci -m "Fixed all those horrible crashes" foo bar baz graphics/logo.png
    

    I'm not aware of a way to tell it to ignore a certain set of files. Of course, if the files you do want to commit are easily listed by the shell, you can use that:

    $ svn ci -m "No longer sets printer on fire" printer-driver/*.c
    

    You can also have the svn command read the list of files to commit from a file:

    $ svn ci -m "Now works" --targets fix4711.txt
    

提交回复
热议问题