Older version of files and deleted files appearing on github
<p>I am new to version control. Whenever I import a repository to GitHub, older version of files and the files that I have deleted also appear on GitHub page.</p>

<p>What can I do?</p>

<p><a href="https://i.stack.imgur.com/i2eOn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i2eOn.png" alt="~ is appearing in front of these files"></a>
<code>~</code> is appearing in front of those files.</p>