SVN Commit specific files

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

    Use changelists. The advantage over specifying files is that you can visualize and confirm everything you wanted is actually included before you commit.

    $ svn changelist fix-issue-237 foo.c 
    Path 'foo.c' is now a member of changelist 'fix-issue-237'.
    

    That done, svn now keeps things separate for you. This helps when you're juggling multiple changes

    $ svn status
    A       bar.c
    A       baz.c
    
    --- Changelist 'fix-issue-237':
    A       foo.c
    

    Finally, tell it to commit what you wanted changed.

    $ svn commit --changelist fix-issue-237 -m "Issue 237"
    

提交回复
热议问题