Mercurial: Globally Ignore Files

前端 未结 2 600
粉色の甜心
粉色の甜心 2020-12-23 10:57

I know about .hgignore and how I can ignore files on a project-by-project basis. I want to ignore stuff for all Mercurial repositories.

Is there somethi

2条回答
  •  没有蜡笔的小新
    2020-12-23 11:53

    You can add a path to a global or per-user ignore file in the [ui] section of your global/user hgrc or Mercurial.ini:

    [ui]
    ignore = ~/.hgignore
    

    On Windows:

    [ui]
    ignore = %USERPROFILE%\.hgignore
    

提交回复
热议问题