.git/info/excludeを編集します。このファイルは( Mac の場合?)最初こうなっています。

# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store

書き方はルートに置かれている.gitignoreとまったく同じように書くことができます。例えばルートのdistディレクトリを除外したい場合は、

/dist

と追記するだけです。

JavaScript で飯食べたい歴約 5 年、 純( nju33 ) によるノートサイトです。

このサイトではドリンク代や奨学金返済の為、広告などを貼らせて頂いてますがご了承ください。

Change Log