.git/info/exclude をテキストエディタで開いてそこに書くだけです。
# .git/info/exclude
memo.txt
my_debug.log
tmp/
.gitignore と書き方は全く同じです。
ファイルの場所は git clone したフォルダの中の .git/info/exclude です。
myapp/
├── .git/
│ └── info/
│ └── exclude ← ここに書く
├── memo.txt ← memo.txt と書けばこれが対象
├── app.py
└── templates/
# .git/info/exclude
memo.txt
my_debug.log
tmp/
.gitignore と書き方は全く同じです。
ファイルの場所は git clone したフォルダの中の .git/info/exclude です。

コメント