I accidentally added a binary file to SVN with the add command, and now I want to remove it from being version controlled, but not delete the file. How do I do this?
相关问题
- How can I set the SVN password with Emacs 23.1 bui
- If statements in .htaccess files, to enable passwo
- SVN+SSH checkout over VPN using tortoise SVN, Smar
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
相关文章
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- Incompatible JavaHl library loaded
- TFS vs. JIRA/Bamboo/SVN [closed]
- converting svn repo to git using reposurgeon
- SVN查看日志超时
Don't you just mean to add it to the ignore list, then just remove the working copy? search for "ignore". In other words, it should remain to be version controlled, but shouldn't pick up any changes in your working copy. (Not entirely sure why you'd want to do this... perhaps there are better ways of achieving what you'd like to do)
The simplest way I know how to do that is to move the file, delete the file using svn, and then move the file back.
svn rm --keep-local
If you didn't commit yet, you can use "svn revert" to undo the add.
As already mentioned svn rm --keep-local is the way to go.
A handy shortcut for those of you using TortoiseSVN: "Delete (keep local)" is available on the TortoiseSVN sub-menu if you hold the Shift button while right-clicking the file you want to delete.