Skip to content

Instantly share code, notes, and snippets.

@silversonicaxel
Last active March 21, 2018 11:38
Show Gist options
  • Select an option

  • Save silversonicaxel/75ed3e1abe7ff0809fa0 to your computer and use it in GitHub Desktop.

Select an option

Save silversonicaxel/75ed3e1abe7ff0809fa0 to your computer and use it in GitHub Desktop.
SVN #svn
> version of svn
$ svn --version
> information of the current branch
$ svn info
> Checkout the repository
$ svn checkout <new-url> <directory>
$ svn checkout -r <revision-id> <new-url> <directory>
> Switch
> Relocate the repository
$ svn relocate <new-url>
> Ignore file
$ svn changelist ignore-on-commit <filename>
> Adding files to the repository
$ svn add .
$ svn add <filename>
$ svn add <directory>
$ svn add --depth=empty <directory-without-files>
> Removing files from the repository
$ svn delete <filename>
> Removing files from the repository, leaving the file in the filesystem
$ svn delete --keep-local <filename>
> Update repository
$ svn update
> Commit repository
$ svn commit -m "message of commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment