How do I overwrite my local changes in TortoiseSVN?

后端 未结 6 2247
一整个雨季
一整个雨季 2021-02-18 15:46

Lets say I did a check out, edited some stuff and realized I want to re-download the repository code and overwrite my local changes without commiting them.

I downloaded

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-18 16:14

    You can either revert the changes (right-click, it's an option) or you can delete the file(s) in question and update. The difference is, revert will revert to the last version you checked out, while delete and update will "revert" to the latest version in the repository, depends on what you're trying to accomplish. Oh, and revert can be done w/out access to the repository, where delete and update can't.

    Andy adds a good point that a diff is in order to make sure you're discarding what you think you're discarding. Many times I've forgotten about changes I've made and blew away more than I thought I was.

提交回复
热议问题