|Line: 1 to 1|
|(For additional info, see Chapter 2 of the Subversion book.)|
|Line: 1 to 1|
$ svn import svn-demo svn://lemur.ling.washington.edu/test/svn-demo/trunk -m "Initial import of sample Subversion project." Adding svn-demo/party Adding svn-demo/party/potluck.txt Adding svn-demo/party/pizza-toppings.txt Committed revision 198.
$ svn checkout svn://lemur.ling.washington.edu/test/svn-demo/trunk A trunk/party A trunk/party/potluck.txt A trunk/party/pizza-toppings.txt Checked out revision 198.
$ svn update At revision 198.
$ svn status ? location.txt M potluck.txtThe question mark means there's a new file that Subversion doesn't know about yet. That can be fixed with
$ svn add location.txt A location.txtIf you're working on textual files (such as text or source code) you can also view the specific changes to a particular file.
$ svn diff potluck.txt Index: potluck.txt =================================================================== --- potluck.txt (revision 198) +++ potluck.txt (working copy) @@ -3,3 +3,4 @@ Alice - Salad Earl - Scalloped potatoes Sue - Jell-O +David - Chocolate cherry cake
$ svn commit -m "potluck.txt: Add another dish to pass; location.txt: Add new file for party location." Adding party/location.txt Sending party/potluck.txt Transmitting file data .. Committed revision 199.Note: Revision numbers will not always be consecutive. They're global for the entire repository, so commits to other projects will increment the version number you see. -- DavidBrodbeck - 25 Oct 2007