Add all unstaged files, excluding those that match a specified pattern

hg add

  • Adds specified files to the staging area for the next commit in Mercurial.
    More information: <https://www.mercurial-scm.org/doc/hg.1.html#add>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

hg add --exclude {{pattern}}

click the source code to copy install hg add on any operating system with command-not-found.com