How to untrack files (git and git GUI) : <p>I am using git GUI (together with Git bash). Now, I know if I want to ignore files for git I have to put them in a .gitignore file. </p>

<p>1)I have come to know that git in windows does not create a .gitignore file for you and you have to create it yourself. Also git GUI won't do that. Is this correct?</p>

<p>Now my special situation:</p>

<p>I made a mistake in the beginning of managing this project and together with my .c and .h files I also tracked another file (let's call it "shouldnottrack.file"). This file is generated by the build process, so in principle should not be tracked. </p>

<p>But I did it and it was included in the commits (staged, commited etc).</p>

<p>Now, I want to <strong>untrack</strong> this file. </p>

<p>I have done it temporalily by doing <code>git checkout -- shouldnottrack.file</code> but this works only once</p>

<p>2) How can I untrack this file? (GUI, command, any method ok)</p>

<p>3) If I include this file in the .gitignore file, will git untrack it automatically?</p>

<p>thanks</p>
