.gitignore regex for emacs temporary files

前端 未结 6 1529
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 06:11

I\'m trying to .gitignore emacs temporary/autosave files. I\'m using...

\\.\\#.*

in my .gitignore.

But git add -A run in

6条回答
  •  既然无缘
    2021-02-05 06:37

    If you want an easy way to ignore files, you can also use http://www.gitignore.io which helps create useful .gitignore files for your project.

    Here is the emacs template: https://www.gitignore.io/api/emacs

    There is also documentation demonstrating how to run gi from the command line.

提交回复
热议问题