gitignore 文件中“.gitignore~”的可能用法是什么?

What's the possible usage of ".gitignore~" in a gitignore file?

我无法理解它的用法,因为波浪号不是正则表达式中的元字符。

我在这里看到了:

https://github.com/spring-guides/tut-rest/blob/master/.gitignore

https://github.com/spring-guides/tut-rest/commit/a086df26fd7e6b54b369d4fa0b45522c9bc3a570#diff-a084b794bc0759e7a6b77810e01874f2

像 emacs 这样的一些编辑器使 backup files 以波浪号结尾,所以这条规则将忽略在编辑 .gitignore 本身时所做的任何备份