Changes between Version 1 and Version 2 of cypress/svn


Ignore:
Timestamp:
08/17/15 15:03:02 (9 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/svn

    v1 v2  
    1010[http://subversion.apache.org Home Page]
    1111
    12 [[Image()]]
     12[[Image(SVN_model.png)]]
    1313
    1414== Good things... ==
     
    1919   * Revert to a previous revision of a file/directory.
    2020
    21 [[Image()]]
     21[[Image(SVN_revision.png)]]
    2222
    2323== 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 
    2629This creates a repository under '$HOME/repos'.
    27 
    28 Note that $HOME is your home-directory on ''sphynx''.
     30Note that $HOME is your home-directory on ''Cypress''.
    2931
    3032Once you did this, you don't have to do this again.  Do not delete '$HOME/repos' !!!
    3133
    3234* Testing your repository
    33 On ''sphynx'',
     35On ''Cypress'',
     36{{{#!bash
    3437 mkdir mywork
    3538 cd mywork
     
    3740 echo "This is README.txt" > README.txt
    3841 svn import file:///$HOME/repos/project1 -m"initial import"
     42}}}
    3943Now you have ''project1'' in your repository.
    4044
    4145Delete ''project1'' then checkout ''project1'' from the repository,
     46{{{#!bash
    4247 cd ..
    4348 rm -rf project1
    4449 svn co file:///$HOME/repos/project1 ./project1
     50}}}
    4551
    4652=== Working with SVN ===
     
    5965
    6066=== 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
     67To 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}}}
    6371
    64 You will be asked for typing your password on ''sphynx''.
     72You will be asked for typing your password on ''Cypress''.
    6573
    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''.
    6775
    68 To see the path of your home directory, on ''sphynx''
     76To see the path of your home directory, on ''Cypress''
     77{{{#!bash
    6978 cat $HOME
     79}}}
    7080
    7181* 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]
    7484
    7585=== Try using Your Repository ===
    7686==== Check out data ====
    77 Somewhere on ''sphynx'',
     87Somewhere on ''Cypress'',
     88{{{#!bash
    7889 svn co file:///$HOME/repos/project1 ./project1
     90}}}
    7991go into '''project1''' directory.
     92{{{#!bash
    8093 cd project1
    81 
     94}}}
    8295look at files
     96{{{#!bash
    8397 ls
     98}}}
    8499
    85100==== Edit README.txt ====
     
    87102
    88103then commit it.
     104{{{#!bash
    89105 svn commit -m"your message"
    90 
     106}}}
    91107
    92108==== When you made a stupid change or delete a file by mistake ====
     
    94110
    95111To look at the log
     112{{{#!bash
    96113 svn log
     114}}}
    97115
    98116If you want to download version 1,
     117{{{#!bash
    99118 svn -r 1 update
     119}}}
    100120
    101121When you delete '''README.txt by mistake,
     122{{{#!bash
    102123 rm '''README.txt'''
     124}}}
    103125
    104126See the file you deleted does not exist.
     127{{{#!bash
    105128 ls
    106 
     129}}}
    107130Download the missing file,
     131{{{#!bash
    108132 svn update
     133}}}
    109134
    110135==== Add files ====
     
    117142==== Check status ====
    118143To check the status
     144{{{#!bash
    119145 svn stat
     146}}}
    120147
    121148To see the difference between the repository and your working version
     
    124151==== Upload ====
    125152To upload your working version to the repository,
     153{{{#!bash
    126154 svn commit -m"comment for current version"
     155}}}
    127156
    128157Look at the status and difference
     158{{{#!bash
    129159 svn stat
    130160 svn diff
     161}}}
    131162
    132163==== Help ====
     164{{{#!bash
    133165 svn help
     166}}}