svn update is not updating!

前端 未结 9 986
悲哀的现实
悲哀的现实 2021-02-03 21:33

I want svn update to overwrite my local file with the files from the server, even if my local files have modifications, I want to throw them away and use the version that\'s on

9条回答
  •  借酒劲吻你
    2021-02-03 21:56

    I just wanted to add a little to what diyism posted.

    I didn't see the . next to the ; in the line

    svn revert -R .; svn up
    

    and it confused me. I don't know why you need to explicitly use . for all files when using revert and you don't using update but that seems to be the way it is.

    So, in case it helps anyone, I thought it would be more clear to see the answer as two lines

    svn revert -R .
    svn update
    

提交回复
热议问题