brew install svn
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
cd desktop
svn checkout --username USERNAME https://svn.cs.kent.edu/courses/cs13011/svn/USERNAME/
cd desktop/USERNAME
svn add PROJECT_NAME
svn commit -m ''
cd desktop/USERNAME
svn rm PROJECT_NAME
svn commit -m ''
cd desktop/USERNAME
svn commit -m ''
svn add
svn: E155011: Commit failed (details follow): svn: E155011: Directory '/Users/someLocalUserName/Desktop/USERNAME/Lab1' is out of date svn: E170004: Item '/USERNAME/Lab1' is out of datedo the following
cd desktop/USERNAME
svn update .
svn checkout http://www.foo.edu/svn/oop/username
svn co http://www.foo.edu/svn/oop/username
Checks out a working copy from the repository. Normally only do this once or when something is messed up and you need a fresh copy from the server.
svn update
Brings your working copy up-to-date with the server repository. Any changes made in
the repository are put into your working copy. Always do this before you start
working on a file (or repo).
svn add filename
Puts the file filename under control of the versioning system. Do this once when you create a new file or folder.
svn commit -m "Added new method."
svn ci -m "Added new method."
Commits the changes that you have made to the working copy to the server repository with a comment.
Do this everytime you stop working on a file.
svn status
Gives the status of all files in the current versioned directory/folder.
Tells you if files are under version control (been added).
'?' - file is not under version control. You may have forgotten to do an svn add. Object files (e.g., main.o) should not be under version control and will have a ?. 'M' the file is modified. You will need to do a commit.
svn delete filename
Deletes the file filename. Only occurs in the working copy, i.e., must be committed to show up in the repository.
svn mv oldfilename newfilename
Changes the name of a file from oldfilename to oldfilename. Only occurs in the working copy, i.e., must be committed to show up in the repository.
svn mkdir directory_filename
Creates a new directory with the name directory_filename. Only occurs in the working copy, i.e., must be committed to show up in the repository.
svn mv old_directory new_directory
Changes the name of the directory with the name old_directory to the new name
old_directory. Make sure to commit any work that you have and perform an update first to avoid any problems.
Only occurs in the working copy, i.e., must be committed to show up in the repository.
svn log filename
Presents information about the various versions of filename. Can be used to find the version number that corresponds to a version
that you may want (based on the annotation given when committed).
svn update filename -r####
If you want to move back to a previous version use the update with the -r option. Get the version number from svn log filename
and
put it in the ####
.