MoniWikiGit Svn
Login:
Password:
Join
E D R S I M H RSS
FrontPage|FindPage|TitleIndex|RecentChanges|PrintThisPage

Contents

1 importing initial project
2 cloning existed svn project
3 commiting to svn repository

1 importing initial project #

  • $ sudo -u www-data svnadmin create /home/user2/tetris/dev/svn/hj1060
  • $ svn co http://dev.tekno.co.kr/svn/hj1060
  • $ svn import -m "importing hj1060" . http://dev.tekno.co.kr/svn/hj1060/trunk
    tetris@t1:~/temp/svn_test/hj1060$ svn co http://dev.tekno.co.kr/svn/hj1060
    Checked out revision 0.
    
    tetris@t1:~/temp/svn_test/hj1060$ ls -la
    total 4.0K
    drwxr-xr-x 3 tetris tetris 32 Jul 27 07:23 ./
    drwxr-xr-x 3 tetris tetris 19 Jul 27 07:08 ../
    -rw-r--r-- 1 tetris tetris 10 Jul 27 07:08 README
    drwxr-xr-x 3 tetris tetris 17 Jul 27 07:23 hj1060/
    tetris@t1:~/temp/svn_test/hj1060$ cd hj1060/
    tetris@t1:~/temp/svn_test/hj1060/hj1060$ ls -la
    total 0
    drwxr-xr-x 3 tetris tetris 17 Jul 27 07:23 ./
    drwxr-xr-x 3 tetris tetris 32 Jul 27 07:23 ../
    drwxr-xr-x 6 tetris tetris 92 Jul 27 07:23 .svn/
    tetris@t1:~/temp/svn_test/hj1060/hj1060$ cp ../README .
    tetris@t1:~/temp/svn_test/hj1060/hj1060$ svn import -m "importing hj1060" . http://dev.tekno.co.kr/svn/hj1060/trunk
    Skipped '.svn'
    Adding         README
    
    Committed revision 1.
    tetris@t1:~/temp/svn_test/hj1060/hj1060$ 
    

2 cloning existed svn project #

  • $ git svn clone --prefix svn/ -s http://dev.tekno.co.kr/svn/hj1060
    tetris@t1:~/temp/git_test/svn$ git svn clone --prefix svn/ -s http://dev.tekno.co.kr/svn/hj1060
    Initialized empty Git repository in /home/2/tetris/temp/git_test/svn/hj1060/.git/
            A       README
    r1 = c24f14de2ee655c0610a22684cde565b4075d26a (refs/remotes/svn/trunk)
    Checked out HEAD:
      http://dev.tekno.co.kr/svn/hj1060/trunk r1
    tetris@t1:~/temp/git_test/svn$ ls -la
    total 0
    drwxr-xr-x 3 tetris tetris 19 Jul 27 07:31 ./
    drwxr-xr-x 9 tetris tetris 96 Jul 27 07:30 ../
    drwxr-xr-x 3 tetris tetris 30 Jul 27 07:31 hj1060/
    tetris@t1:~/temp/git_test/svn$ cd hj1060/
    tetris@t1:~/temp/git_test/svn/hj1060$ ls -la
    total 4.0K
    drwxr-xr-x 3 tetris tetris  30 Jul 27 07:31 ./
    drwxr-xr-x 3 tetris tetris  19 Jul 27 07:31 ../
    drwxr-xr-x 9 tetris tetris 144 Jul 27 07:31 .git/
    -rw-r--r-- 1 tetris tetris  10 Jul 27 07:31 README
    tetris@t1:~/temp/git_test/svn/hj1060$
    

3 commiting to svn repository #

  • $ git commit -a
  • $ git svn dcommit
    tetris@t1:~/temp/git_test/svn/hj1060$ vi README
    tetris@t1:~/temp/git_test/svn/hj1060$ git commit -a -m "git svn testing"
    [master 01f34cf] git svn testing
     1 files changed, 1 insertions(+), 0 deletions(-)
    tetris@t1:~/temp/git_test/svn/hj1060$ git svn dcommit
    Committing to http://dev.tekno.co.kr/svn/hj1060/trunk ...
            M       README
    Committed r2
            M       README
    r2 = 3bec7dea76fd137457d792a255d8a4e02326a928 (refs/remotes/svn/trunk)
    No changes between current HEAD and refs/remotes/svn/trunk
    Resetting to the latest refs/remotes/svn/trunk
    tetris@t1:~/temp/git_test/svn/hj1060$
    
last modified 2011-07-27 09:06:31
EditText|FindPage|DeletePage|LikePages| Valid XHTML 1.0! Valid CSS! powered by MoniWiki
0.0392 sec