How to drop and create new repositories with a subversion server?

为君一笑 提交于 2019-12-07 16:32:59

问题


Ok so I just did something boneheaded.

I'm setting up a subversion server for the first time ever that will be used by contractors. I did the 1 click setup, created my project and did my first check in of our application thinking that I'll go through later and remove the password information in the connection string in the configuration file.

Duh...

So now I need to delete that project within the repository and create it again so I can do the checkin this time without the password. Looking through the options for svnadmin help I don't see any options for deleting a repository.

How do I do this? Easy points here!


回答1:


To delete the project repository, just delete the folder from the server, then do svnadmin create again.

Will is right, I didn't read the password sentence correctly. Checking out and deleting won't help with the security concerns. When in doubt, follow the book or check CMS's link.




回答2:


You can remove the file and purge all its history, and then re-import it clean.

Check this from the SVN FAQ:

How do I completely remove a file from the repository's history?




回答3:


Just deleting the files from the current revision and doing a commit won't help with security concerns. The password will still exist in an old revision of the repository for the now-deleted file. CMS's FAQ link should help as well.



来源:https://stackoverflow.com/questions/344406/how-to-drop-and-create-new-repositories-with-a-subversion-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!