How to Get Started With Command Line Subversion on Windows
In Apache Subversion, commands are entered via a terminal window., To create your first repository, use the ‘svnadmin create’ command followed by the path where you wish to create the new repository, and the name of your new repository., Check in...
Step-by-Step Guide
-
Step 1: In Apache Subversion
To open this in Windows, press the ‘Windows key’ and ‘r.’ This will bring up the ‘Run’ dialog box.
Enter ‘cmd’ and hit ‘Ok.' The terminal window will now open, ready for you to input your commands. -
Step 2: commands are entered via a terminal window.
For example, if you wanted to create a new repository called ‘New project’ in the ‘Documents’ folder, the command would be: svnadmin create C:\Users\Jessica\Documents\New_Project , You will see a new folder called ‘New Project.’ , Do not delete or modify any of these files. , This is done using the ‘SVN Checkout’ command, followed by the URL of your repository and the location of the repository you just created on your computer.
In this example, the command is: svn checkout http://127.0.0.1:9880/New-Project C:\Users\Jessica\Documents\New_Project Hit ‘Enter.’ ,, When you have finished modifying your files, you will need to commit your changes back to the repository.
To perform a commit, use the ‘svn commit’ command followed by “--message” and an appropriate log message, and finally, the location of your working copy.
In this example, the command would be: svn commit
--message “added Readme file” C:\Users\Jessica\Documents\New_Project Hit ‘Enter.’ Your changes have now been committed to the repository! -
Step 3: To create your first repository
-
Step 4: use the ‘svnadmin create’ command followed by the path where you wish to create the new repository
-
Step 5: and the name of your new repository.
-
Step 6: Check in the ‘Documents’ folder.
-
Step 7: This folder contains some new files.
-
Step 8: Now you have created a repository
-
Step 9: checkout a working copy.
-
Step 10: When you check your working copy
-
Step 11: you will notice copies of all the files from your repository.
-
Step 12: Now you are free to make changes to your working copy.
Detailed Guide
To open this in Windows, press the ‘Windows key’ and ‘r.’ This will bring up the ‘Run’ dialog box.
Enter ‘cmd’ and hit ‘Ok.' The terminal window will now open, ready for you to input your commands.
For example, if you wanted to create a new repository called ‘New project’ in the ‘Documents’ folder, the command would be: svnadmin create C:\Users\Jessica\Documents\New_Project , You will see a new folder called ‘New Project.’ , Do not delete or modify any of these files. , This is done using the ‘SVN Checkout’ command, followed by the URL of your repository and the location of the repository you just created on your computer.
In this example, the command is: svn checkout http://127.0.0.1:9880/New-Project C:\Users\Jessica\Documents\New_Project Hit ‘Enter.’ ,, When you have finished modifying your files, you will need to commit your changes back to the repository.
To perform a commit, use the ‘svn commit’ command followed by “--message” and an appropriate log message, and finally, the location of your working copy.
In this example, the command would be: svn commit
--message “added Readme file” C:\Users\Jessica\Documents\New_Project Hit ‘Enter.’ Your changes have now been committed to the repository!
About the Author
Emma Peterson
Experienced content creator specializing in DIY projects guides and tutorials.
Rate This Guide
How helpful was this guide? Click to rate: