gitignore what is the meaning of *~ and these other patterns?
<p>I came across <a href="https://github.com/munen/p_slides/blob/master/.gitignore" rel="noreferrer">this .gitignore file</a> and could not understand it. Especially the first line <code>*~</code> and the second one also.</p>

<p>Here are the complete contents for quick reference:</p>

<pre><code>*~
\#*\#
*.swp
tmp/*
private/**/*
public/cache
.DS_Store
.#*
example_presentation.html
</code></pre>

<p>Please explain it. Where does one find the detailed syntax of patterns used by gitignore, (apart from the man-pages)?</p>

<p>I have already tried the man-pages, but sad to say, I found the patterns descriptions there to be less helpful. Hence the question.</p>