简体   繁体   中英

How can I update a file to the head revision on SVN

I'm trying to understand SVN coming from git. I have performed an update but one of my files still has an exclamation mark.

在此处输入图像描述

Is the exclamation mark there because I changed it and it's different from the file on the repository? And I want to overwrite the working copy and for that file to be the version at the head of the repository, how can I do that in SVN, either with the command line or tortoisesvn ?

I'm following this tutorial but it doesn't mention this.

  1. The file contains local modifications. Therefore, it is marked as (M)ofidied.
  2. When you run svn update , Subversion does not revert local changes. It merges modifications incoming from the repository with your local modifications when possible (or raises a conflict which you need to solve manually). Running svn update will never remove your local uncommitted modifications.
  3. If you want to clean up your local modifications, you need to run svn revert or a corresponding Revert command of TortoiseSVN. Note that this operation is irreversible - use svn revert with caution! 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM