Subversion Key Issues

I just started using subversion and read the official documentation (svn book), cheat sheet and a couple of manuals. I know how to install subversion (on linux), create a repository (svnadmin create) and import the Eclipse project into the repository (import SVN), view the repository files (using the svn list).

But I do not understand some other terms. For example, after importing my Eclipse project into a newly created repository, I made changes to the Eclipse project (more than 1 file). Now, how do I update the repository with these added files / changes made to the Eclipse project?

The svn update command brings the changes from the repository to your working copy - this is the opposite of what I want, for example, to make the changes I made to the Eclipse project to the previously imported project in the repository. If I am right, you update the repository more often (as you continue to expand the implementation of the project) than your current project (with the update).

In addition, I do not understand when you use svn merge. The svn book says it applies the differences between the two sources in the working copy. Is there a script that would explain this?

Finally, can I add more than one project to the repository? Or is it better to create a new repository for each project?

+3
source share
5 answers
  • The term you are looking for is "commit".

  • Subversion ( , ). , , .

  • . IMHO - // .., //.

+5

SVN, :

  • Trunk -
  • - "Tagged" (.. v1.2.5-release)
  • - . , , 1.2.4, 1.3. , 1.2 (.. 1.2.5), , , , / 1.3. merge , 1,3 , 1.3, . ( , "" .

3 :

  • /trunk
  • /branches
  • /tags

. , . VCS, Mericual/ Git, tags branches, . SVN /.

  • - , ..
  • -
  • . working copy server repository
  • Commit - server repository <<26 >
  • Switch. working copy ​​server repository
  • Diff - / , .
  • - , .
  • - , .
+2

commit

, . v1.x - 2. 1.x, , 2, , .

+1

" svn". " ".

, "" , .

( 2 ) .

SVN kai, / SVN.

+1

, , 3, :

  • : . //, .

  • . , ( 10 x ). , 1-2 , , ssh-security ; -)

EL

+1

Source: https://habr.com/ru/post/1745312/


All Articles