SVN: Ignoring an already committed file

前端 未结 6 1782
心在旅途
心在旅途 2020-12-14 17:30

I have a settings file that is under version control using subversion. Everybody has their own copy of this file, and I need this not to be ever committed. However, like I s

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 17:58

    [[ I'm new to subversion, so maybe this doesn't make sense. marking this as wiki -- if you know the right answer, please APPEND in the later section ]]

    Couldn't you have a custom set of checkout steps so each user gets a different settings folder?

    $ svn checkout http://example.com/project  project
    ..
    $ dir project
    original_settings\     folder1\     folder2\ 
    $ svn checkout http://example.com/project/aaron_settings project\settings
    ..
    $ dir project
    original_settings\     folder1\     folder2\    settings\
    

    Or for new users

    $ svn import project\settings  http://example.com/project/aaron_settings
    

    What I'm getting at is you want each user to have a custom view of the repository. In other version control systems, you could set up a custom listing of which projects you were using and which you weren't and which you put in odd places.

    Does this work in subversion? The above code looks really risky, but maybe i'm doing it wrong.

    WIKI:

    (nothing yet)

提交回复
热议问题