How do I avoid checking in local changes to the SVN repository?

后端 未结 8 1071
有刺的猬
有刺的猬 2021-01-05 08:19

I have to make local changes to my project files in order to get it to run in a different environment. Twice now I accidentally checked those changes in (and messed up ever

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 08:40

    When I have a situation like this, I add the files that I do not want to check in to a change set labelled "DO NOT CHECK IN". My SVN client (SmartSVN, although Tortoise does also suuprt this) can then be set to ignore that change set, meaning that I don't accidentally check in those changes.

    The only downside to this is when you have made changes to files in the change set that you do actually want to check in - you then have to manually remember to check them in.

提交回复
热议问题