Tags: #macOS #svn #Subversion
macOS: Subversion How-to
Posted on December 12, 2014
A brief manual for the command-line-based subversion client on Apple macOS…
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
In order 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
the EDITOR
shell variable needs to be specified (e.g. vi
, vim
, nano
etc.):
export EDITOR=vi
For more info, this source can be used.