Last active
March 31, 2020 08:16
-
-
Save primitiveshaun/4830b28ba2d66a9bb3ba2204bf50d7b5 to your computer and use it in GitHub Desktop.
SVN Commands Reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # svn-commands.sh | |
| # *** HOUSEKEEPING! We all live in a yellow svn repository, a yellow svn repository... *** | |
| # Master File: Maintained by Primitive Digital's Housekeeping Department | |
| # https://primitivedigital.uk/housekeeping-department/ | |
| # STATUS ::: DRAFT: Requires Review | |
| # version of svn | |
| $ svn --version | |
| # information of the current branch | |
| $ svn info | |
| # list the content of the repo | |
| svn ls <repo-url> | |
| # checkout the repo | |
| $ svn co --username <username> --password <password> <repo-url> | |
| $ svn checkout <repo-url> <directory> | |
| $ svn checkout -r <revision-id> <new-url> <directory> | |
| # export the repo | |
| svn export <repo-url> | |
| # relocate the repo | |
| $ svn relocate <new-url> | |
| # ignore file | |
| $ svn changelist ignore-on-commit <filename> | |
| # add files to the repository | |
| $ svn add . | |
| $ svn add <filename> | |
| $ svn add <directory> | |
| $ svn add --depth=empty <directory-without-files> | |
| # remove files from the repo | |
| $ svn delete <filename> | |
| # remove file from the repo, leave 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