How do I make svn ignore unversion files only in my working copy?

前端 未结 3 1638
青春惊慌失措
青春惊慌失措 2021-02-19 07:23

duplicate: Ignore SVN ignore... possible?


Suppose my working copy is littered with unversioned files that I don\'t want to delete. I want svn to ignore these files

相关标签:
3条回答
  • 2021-02-19 07:32

    If you are using TortoiseSVN, you can go in TortoiseSVN's settings (Right Click > TortoiseSVN > Settings).

    In the General Tab, Subversion Group, add a lone asterisk (*) to the Global Ignore Pattern option.

    0 讨论(0)
  • 2021-02-19 07:36

    Yes, the user configuration file can contain the global-ignores option which is exactly what you're looking for.

    The location of this file varies by platform. From the documentation:

    On Unix-like systems, this area appears as a directory named .subversion in the user's home directory. On Win32 systems, Subversion creates a folder named Subversion, typically inside the Application Data area of the user's profile directory (which, by the way, is usually a hidden directory). However, on this platform the exact location differs from system to system, and is dictated by the Windows registry.

    0 讨论(0)
  • 2021-02-19 07:53

    In your private subversion config file for the repository, set the global-ignores flag, like this:

    [miscellany]
    global-ignores = *.class *.o
    
    0 讨论(0)
提交回复
热议问题