Changes between Version 1 and Version 2 of cypress/svn
- Timestamp:
- 08/17/15 15:03:02 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/svn
v1 v2 10 10 [http://subversion.apache.org Home Page] 11 11 12 [[Image( )]]12 [[Image(SVN_model.png)]] 13 13 14 14 == Good things... == … … 19 19 * Revert to a previous revision of a file/directory. 20 20 21 [[Image( )]]21 [[Image(SVN_revision.png)]] 22 22 23 23 == First things to do == 24 * Create a repository on ''Cypress'' 25 svnadmin create $HOME/repos 24 * Create a repository in your home directory on ''Cypress'' 25 {{{#!bash 26 [fuji@cypress2 ~]$ svnadmin create $HOME/repos 27 }}} 28 26 29 This creates a repository under '$HOME/repos'. 27 28 Note that $HOME is your home-directory on ''sphynx''. 30 Note that $HOME is your home-directory on ''Cypress''. 29 31 30 32 Once you did this, you don't have to do this again. Do not delete '$HOME/repos' !!! 31 33 32 34 * Testing your repository 33 On ''sphynx'', 35 On ''Cypress'', 36 {{{#!bash 34 37 mkdir mywork 35 38 cd mywork … … 37 40 echo "This is README.txt" > README.txt 38 41 svn import file:///$HOME/repos/project1 -m"initial import" 42 }}} 39 43 Now you have ''project1'' in your repository. 40 44 41 45 Delete ''project1'' then checkout ''project1'' from the repository, 46 {{{#!bash 42 47 cd .. 43 48 rm -rf project1 44 49 svn co file:///$HOME/repos/project1 ./project1 50 }}} 45 51 46 52 === Working with SVN === … … 59 65 60 66 === Accessing your Repository over Network === 61 To access your Repository on ''sphynx' through ''ssh'' from other hosts, 62 svn co svn+ssh://''USERNAME''@sphynx.ccs.tulane.edu/''HOME_DIRCTORY''/repos/project1 ./project1 67 To access your Repository on ''Cypress' through ''ssh'' from other hosts, 68 {{{#!bash 69 svn co svn+ssh://''USERNAME''@cypress.tulane.edu/''HOME_DIRCTORY''/repos/project1 ./project1 70 }}} 63 71 64 You will be asked for typing your password on '' sphynx''.72 You will be asked for typing your password on ''Cypress''. 65 73 66 ''USERNAME'' and ''HOME_DIRCTORY'' are your login user name and home directory on '' sphynx''.74 ''USERNAME'' and ''HOME_DIRCTORY'' are your login user name and home directory on ''Cypress''. 67 75 68 To see the path of your home directory, on ''sphynx'' 76 To see the path of your home directory, on ''Cypress'' 77 {{{#!bash 69 78 cat $HOME 79 }}} 70 80 71 81 * Using svn-client software with GUI 72 ** There are Windows Versions and Mac OS versions.73 ***[http://svn-ref.assembla.com/windows-svn-client-reviews.html Client Software Review]82 * There are Windows Versions and Mac OS versions. 83 *[http://svn-ref.assembla.com/windows-svn-client-reviews.html Client Software Review] 74 84 75 85 === Try using Your Repository === 76 86 ==== Check out data ==== 77 Somewhere on ''sphynx'', 87 Somewhere on ''Cypress'', 88 {{{#!bash 78 89 svn co file:///$HOME/repos/project1 ./project1 90 }}} 79 91 go into '''project1''' directory. 92 {{{#!bash 80 93 cd project1 81 94 }}} 82 95 look at files 96 {{{#!bash 83 97 ls 98 }}} 84 99 85 100 ==== Edit README.txt ==== … … 87 102 88 103 then commit it. 104 {{{#!bash 89 105 svn commit -m"your message" 90 106 }}} 91 107 92 108 ==== When you made a stupid change or delete a file by mistake ==== … … 94 110 95 111 To look at the log 112 {{{#!bash 96 113 svn log 114 }}} 97 115 98 116 If you want to download version 1, 117 {{{#!bash 99 118 svn -r 1 update 119 }}} 100 120 101 121 When you delete '''README.txt by mistake, 122 {{{#!bash 102 123 rm '''README.txt''' 124 }}} 103 125 104 126 See the file you deleted does not exist. 127 {{{#!bash 105 128 ls 106 129 }}} 107 130 Download the missing file, 131 {{{#!bash 108 132 svn update 133 }}} 109 134 110 135 ==== Add files ==== … … 117 142 ==== Check status ==== 118 143 To check the status 144 {{{#!bash 119 145 svn stat 146 }}} 120 147 121 148 To see the difference between the repository and your working version … … 124 151 ==== Upload ==== 125 152 To upload your working version to the repository, 153 {{{#!bash 126 154 svn commit -m"comment for current version" 155 }}} 127 156 128 157 Look at the status and difference 158 {{{#!bash 129 159 svn stat 130 160 svn diff 161 }}} 131 162 132 163 ==== Help ==== 164 {{{#!bash 133 165 svn help 166 }}}