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

后端 未结 8 1075
有刺的猬
有刺的猬 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:42

    I've had good luck using svn switch to keep personalized files from stomping on others' configurations. Given a normal trunk/branches/tags layout, make yourself a folder in branches containing your personalized configuration file. Then

    svn switch URL-to-personalized-config URL-to-standard-config
    

    This will cause edits to the config file to be saved off in your branch and not to the trunk. You get versioned edits to your config file, and can't easily mess up the trunk file.

提交回复
热议问题