Our SHORT subversion Command reference.

Create a Repository#

svnadmin create /srv/svn/repos --fs-type fsfs

Add initial files#

svn import /test/temp/svntest file:///srv/svn/repos/svntest/trunk -m "First Import for svntest"
Adding         /test/temp/svntest/number.txt
Adding         /test/temp/svntest/day.txt

Committed revision 1.

Check out the "trunk"#

svn co file:///srv/svn/repos/svntest/trunk
A    trunk/number.txt
A    trunk/day.txt
Checked out revision 1.

List what is in repository.#

svn list --verbose file:///srv/svn/repos/
      1 root                  Feb 21 04:20 ./
      1 root                  Feb 21 04:20 svntest/

List what is in Project.

svn list --verbose file:///srv/svn/repos/svntest
      1 root                  Feb 21 04:20 ./
      1 root                  Feb 21 04:20 trunk/

List what is in Project trunk.

svn list --verbose file:///srv/svn/repos/svntest/trunk
      1 root                  Feb 21 04:20 ./
      1 root               49 Feb 21 04:20 day.txt
      1 root               28 Feb 21 04:20 number.txt
Tells what the current revision is of the project in the repository. svn update At revision 1.

Commit changes to repository#

svn commit number.txt
Sending        number.txt
Transmitting file data .
Committed revision 2.

List what is in Project trunk. #

svn list --verbose file:///srv/svn/repos/svntest/trunk
      2 root                  Feb 21 04:34 ./
      1 root               49 Feb 21 04:20 day.txt
      2 root               24 Feb 21 04:34 number.txt

Display the Log#

svn log -v
------------------------------------------------------------------------
r1 | root | 2010-02-21 04:20:34 -0500 (Sun, 21 Feb 2010) | 1 line
Changed paths:
   A /svntest
   A /svntest/trunk
   A /svntest/trunk/day.txt
   A /svntest/trunk/number.txt

First Import for svntest
------------------------------------------------------------------------

Show revisions in Revision 2#

svn log -v -r2
------------------------------------------------------------------------
r2 | root | 2010-02-21 04:34:49 -0500 (Sun, 21 Feb 2010) | 2 lines
Changed paths:
   M /svntest/trunk/number.txt

I dropped some numbers

------------------------------------------------------------------------

Check to see what is repository to local#

svn diff
Index: day.txt
===================================================================
--- day.txt     (revision 1)
+++ day.txt     (working copy)
@@ -2,5 +2,3 @@
 tuesday
 wednesday
 thrusday
-friday
-saturday
\ No newline at end of file

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 27-Feb-2010 11:53 by jim