Mercurial: Globally Ignore Files

前端 未结 2 592
粉色の甜心
粉色の甜心 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:58

    In powershell, you can get to your global files like this.

    PS> notepad $env:userprofile/mercurial.ini
    ...
    [ui]
    ignore = %USERPROFILE%\.hgignore
    ...
    
    PS> notepad $env:userprofile/.hgignore
    /bin/
    /obj/
    

提交回复
热议问题