I've decided that modifying files directly in notepad is probably dangerous and it was about time to have some proper source control (I am quite new to source control). I have installed VisualSVN server on my server and TortoiseSVN on my client machine. I can create new folders fine, check them our etc. However, on my server, I have an existing folder structure in place for IIS and there are links based on this location everywhere. How can I make the entire folder work with SVN without moving the files?
git init Existing Folder For an existing project to become a Git repository, navigate into the targeted root directory. Then, run git init . Or, you can create a new repository in a directory in your current path. Use git init <directory> and specify which directory to turn into a Git repository.
There is a simple solution for checking in an existing directory structure:
.svn
directory into the root directory of your project. This enables the context menues from TortoiseSVN for all files and sub-folders.An even simpler way than Robert's Answer (although lifting from it):
Open the repository browser of TortoiseSVN and create a new directory for the project you want to check-in.
Check-out this newly created empty directory from SVN as the directory you are wanting to add (ignore the warning about checking out into a non-empty directory).
Execute 'SVN Commit...' on the directory you are wanting to commit, selecting the files you want to add from the commit window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With