Is there a way to recover from an accidental “svn revert”?

前端 未结 10 1895
青春惊慌失措
青春惊慌失措 2020-12-04 20:35

I managed to shoot myself in the foot this morning by doing the following:

  1. Started working on a change to my project
  2. Made a bunch of edits to a bunch
10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 21:13

    Not really Subversion specific, but if you're working with Eclipse, you can try your luck in the local history.

    Now, something a little bit more Subversion specific: if you don't want to make a branch for every change you do, you can keep a couple of trunk checked out locally (trunk-modif-1, trunk-modif-2...). Each "modification" is done on a separate tree and you only need to keep a list of which check out correspond to which modification.

    Or you could use Git locally but I never tried it.

提交回复
热议问题