Ändringar mellan två versioner
Här visas ändringar i "SVN" mellan 2011-04-06 17:49 av Victor Wåhlström och 2011-04-28 12:40 av Martin Björkman.
SVN
Setting up Tortoise in Windows¶
SVN can be accessed via TortoiseSVN on CSC's Windows computers. TortoiseSVN works via the right click context menu in Windows Explorer. If it doesn't show up when you right click a file or folder, you have to run "Add Tortoise Shellextensions", which is found under Start->Programs->TortoiseSVN.
Importing your project to SVN¶
* Move to the directory containing your project (should include the debug folder and a folder named after your project containing the source code)
* Rename the folder containing the source code to project-name.bak
* Create a new folder with the same name as the project.
* Copy the estimate.txt file into the new folder.
* Right click on the new folder and choose: TortoiseSVN -> Import.
* Add the path to your svn repository in the URL field and finish it of with the following folder names trunk/dgi11/project-name It should look something like this: https://svn.csc.kth.se/~username/trunk/dgi11/project-name
* Hit OK. Your file is now version controled.
* Remove the folder you just added to SVN.
* Right click in the folder and choose SVN Checkout all options should already be set and you should be able to just hit OK.
* You should now have a folder that is fully version controled in your project folder named the same as your project.
* Enter the backup folder (project-name.bak) and copy all files except estimate.txt.
* Paste the files into version controled folder.
* Now you have to add all files, except the c++, header and txt files, to the ignore list.
* This is done by right clicking on them and selecting: Add to ignore list -> file name. These files will now not be commited to the svn, saving space.
* Move out of the source folder and right click on it choosing: SVN Commit...
* Check all files that should be commited (in this case every file if you have added the unnesesary ones to the ignore list)
Done! Your project should now be version controlled and still work in Visual Studio.¶