Pardeep Kr
Pardeep Kr

Reputation: 497

how do i get my deleted unrevisioned local file back in svn

I am working on a project . The whole project is on svn repository. I copied a file from some place to my project . But did not commit it to repository . Now somebody else created the same file at same path as mine and added it to svn . The i did an svn up . It gave me conflict at the newly added file . TO resolve the conflict , I removed that file from my local copy and ran the following command

svn resolved file_name. then i did svn up again. Later when i built the code i got error that the file i deleted is needed.

Now when i do svn up , its not restoring that file . I do not know whats the problem ?

Upvotes: 1

Views: 77

Answers (1)

bahrep
bahrep

Reputation: 30662

Revert local changes done to this file (even if you don't see it in your working copy) using svn revert and then run svn update again.

The file is not in Subversion and there is no way to restore it from the repository if you didn't commit the file to the repository (i.e. you didn't publish it). But since you say that someone else already committed it to the repo, the file has to be there and you should be able to restore it successfully in your local working copy.

Upvotes: 2

Related Questions