Apple: MacOS X Subversion HowTo

A brief manual for the command-line-based subversion client…

Normal usage

Repository checkout:

svn checkout --username USERNAME REPOSITORY_URL OPTIONAL_FOLDER_NAME

Update local working copy:

cd SELECTED_DIRECTORY && svn update

Add and commit file(s):

svn add FILENAME0 FILENAME1
svn commit - m "COMMENT TO ADDRESS COMMITTED CHANGE" FILENAME0 FILENAME1

Add and commit directory(ies):

cd PATH_TO_DIRECTORY && svn add * --force
svn commit - m "COMMENT TO ADDRESS COMMITTED CHANGE" PATH_TO_DIRECTORY

Troubleshooting

To prevent the following error message:

svn: E205007: Commit failed (details follow):
svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found

use:

export EDITOR=nano

more info: source

Advertisements
This entry was posted in Apple, Linux, Server and tagged , , , , . Bookmark the permalink.