Differences
This shows you the differences between two versions of the page.
noresm:svntutorial [2013-12-10 13:34:59] alfg |
noresm:svntutorial [2022-05-31 09:29:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======SVN TUTORIAL BRANCH/ | ||
- | |||
- | NOTE: THE EXAMPLES ARE DONE ON ALFS PC, AND ANY DIRECTORY NAMES CONTAINING | ||
- | " | ||
- | |||
- | ==== PART 1 : Create a repository and put a file there ==== | ||
- | |||
- | * CREATE A REPOSITORY | ||
- | alfg@pc4400: | ||
- | |||
- | * CREATE A WORKING DIRECTORY WITH CODE | ||
- | alfg@pc4400: | ||
- | |||
- | * Use the following as the file test.F90: | ||
- | |||
- | < | ||
- | program test | ||
- | implicit none | ||
- | |||
- | real, parameter :: a=4.0 | ||
- | real, parameter :: b=5.0 | ||
- | |||
- | print*, "a is " , a | ||
- | print*, "b is " , b | ||
- | print*, "a+b is " , a+b | ||
- | end program test | ||
- | </ | ||
- | |||
- | * CD TO WORKING DIRECTORY AND VERIFY THAT THE TEST FILE IS THERE | ||
- | alfg@pc4400: | ||
- | total 4 | ||
- | -rw-rw-r-- 1 alfg alfg 166 Dec 6 14:51 test.F90 | ||
- | |||
- | CD TO THE FRESHLY CREATED REPOSITORY AND CREATE " | ||
- | alfg@pc4400: | ||
- | |||
- | IMPORT YOUR WORKING-DIRECTORY TO THE REPOSITORY | ||
- | alfg@pc4400: | ||
- | |||
- | MAKE A BRANCHES-DIRECTORY | ||
- | alfg@pc4400: | ||
- | |||
- | |||
- | ==> YOU NOW HAVE A REPOSITORY CONTAINING TRUNK AND (EMPTY) BRANCHES DIRECTORY. YOU CAN START TO USE IT | ||