How to set up and use Subversion in OSX.
0. I neglected to post how to install Subversion see: How to Install Subversion on Mac OS X.
1. Open the Terminal: Applications -> Terminal
2.Set the correct path in the Terminal window:
3. Test by entering
in Terminal window. Output should be something like:
. If the path is correct.
Otherwise it will be:
4. Create a repository by adding;
Which creates the files necessary for Subversion.
5. Initial import:
6. Checking Out A Working Copy
Navigate to correct folder by eg:
Navigate to correct folder for the following commands:
svn status (Gives overview of changes, use to check folder is working copy)
(Commits new file with log message)
(Adds, new file to Subversion)
(gives detailed information of each file and its revision number, will show ‘mixed revisions’)
(Shows log messages)
(Replaces old with new filename)
r (Makes a new directory)
s (Deletes file)
(If above method fails this will force the deletion)
(Removes file from Subversion)
(Updates to specific revision number)
(Lists top level files/ folders in chosen path) Outputs:
(-R Stands for Recursive – will lists all level files/ folders within chosen path)