Hello everyone) Recently, I had to urgently change something in the file bypassing the commit in SVN. That is, instead of making changes on the local computer and committing this, I immediately changed the file on the server (for good reason).

Tell me, how can I download the file from the server to the computer now?

  • svn update? - Gorets
  • @Gorets does not help. As I understand it, on the server it is necessary to somehow commit it, but I do not understand how. - frops
  • @Gorets, thanks for the idea) - frops
  • svn co does not download? - avp
  • What does "change the file on the server" mean? Subversion has a repository concept and a local working copy concept. The repository is usually stored in FSFS, format FSFS, which is not suitable for manual editing. - Costantino Rupert


2 answers 2

  • Got it. You have a Subversion repository and "on the server" is located a checkout some branch, which is given by the user of your site / service.

  • In this case, the correct solution to the problem would be to commit your change as usual (from the local working copy), and "on the server" perform svn revert . --recursive svn revert . --recursive and svn update .

  • svn revert a specific file, do I understand correctly? I don't need everything. - frops

In general, while waiting, the answer was found) So this:

  1. Copy the file from the server to your local computer;
  2. We produce it (if the file is not available for commit, make a small change, for example, a space in the comment or just a comment);
  3. On the server, do an update file. SVN has a fight;
  4. Select the tf option;
  5. Profit!

That's all) I apologize for the extra flood, but someone may need it.