Download Red Hat Enterprise Linux 7 Developer Guide
Transcript
Chapt er 1 . Collaborat ing Adding Adding Adding ... project/doc/index.html project/INSTALL project/src 1.2.3. Checking Out a Working Copy To check out a working copy of a project in a Subversion repository, run the following command: svn checko ut svn_repository/remote_path [directory] This creates a new directory called directory with a working copy of the project in it. Note that svn_repository is the URL of the Subversion repository, and remote_path is the subdirectory in which the project is stored. Examp le 1.14 . C h eckin g o u t a wo rkin g co p y Let us assume that you have a Subversion repository in the ~ /svn/ directory (in this case, /ho me/jo hn/svn/) and that this repository contains the latest version of the project in the pro ject/trunk subdirectory. To check out a working copy of this project, type: ~]$ svn checko ut svn: ///ho me/jo hn/svn/pro ject/trunk pro ject A project/AUTHORS A project/doc A project/doc/index.html A project/INSTALL A project/src ... 1.2.4 . Adding, Renaming, and Delet ing Files Adding a File o r Dire ct o ry To add an existing file to a Subversion repository and put it under revision control, change to the directory with a working copy of the file and run the following command: svn ad d file Similarly, to add a directory and all files that are in it, type: svn ad d directory This schedules the files and directories for addition to the Subversion repository. To proceed and actually add this content to the repository, run the svn co mmi t command as described in Section 1.2.6, “ Committing Changes” . Examp le 1.15. Ad d in g a f ile t o a Su b versio n rep o sit o ry Let us assume that the directory with your working copy of a Subversion repository has the following contents: 11