开发者

Assistance with adding files to source control

I have set up a server to handle my source control with Visual Svn Server. I have created a repository with the normal folder layout of trunk, tags, branches. All good so far.

On my local pc I have replicated the folder structure of trunk, tags and branches. Within the trunk and branches folders I have a Visual Studio solution in each along with some other files such as a word doc which is not part of t开发者_如何学运维he visual studio solution.

I am using Ankhsvn add in for visual studio and also tortoisesvn.

I want to Ankhsvn to check in/out files etc for visual studio and tortoisesvn for the other files.

I am wondering how I add the local files to my subversion repository?


Save yourself the trouble with Ankh and install TortoiseSVN. If you want to add a file it's a simple right-click > TortoiseSVN > Add.

Your question has also been answered here


With AnkhSVN, first make sure your project is in a common directory, the "Add to Subversion" feature doesn't support multi working copy solutions yet (the rest of AnkhSVN supports this just fine).

Right click the solution file, and choose "Add solution to Subversion". In the dialog that comes up. Fill out the dialog as described in the help section that comes up when you hit the ? button.

Also see "Add a solution to Subversion" from the AnkhSVN documentation.

When AnkhSVN is managing the files in the solution, you can use TortoiseSVN or any other tool to manage the files that need to be in Subversion but aren't part of the solution.


You say 'replicated the folder structure'. I'm assuming you didn't 'check out' the structure you have in the repository? Open the repo-browser, and checkout the structure. Now put your files into the new set of folders, because these have .svn subfolders you can now add them to the repository with ank or tortoise svn.

Forgive bad formatting, typing on iphone

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜