Subversion commands (svn)
SVN Update
svn update – Bring changes from the repository into your working copy.
$ svn update [-r <REV>] [<PATH>]
Usage examples:
$ svn update # update the whole working copy to the latest revision $ svn update doc/ # update doc/ directory to the latest revision $ svn update -r 128 # update (revert) the whole working copy to revision #128 $ svn update -r 56 stack.h stack.c # update (revert) stack.h and stack.c files to revision #56
SVN Merge
svn merge – Apply the differences between two sources to a working copy path.
$ svn merge -r <FROM_REV>:<TO_REV> [<PATH>]
Usage examples:
$ svn merge -r 58:56 stack.h # undo stack.h file changes from revision #58 to revision #56
Transfer files using Secure Copy (scp)
Transfer file/directory from remote host to localhost:
$ scp [<USER>@]<HOST>:<REMOTE_PATH> <LOCAL_PATH>
Usage example:
$ scp v-teq@v-teq.com:~/.vimrc ~/.vimrc # copy .vimrc file from remote host to the local one $ scp user@example.com:/etc/resolv.conf /tmp/dns.txt
Transfer file from localhost to remote host:
$ scp <file/directory> user@example.com:~/remote/directory
Transfer file/directory from localhost to remote host:
$ scp file.txt user@example.com:~/remote/directory
