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.
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?
Now my special situation:
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.
But I did it and it was included in the commits (staged, commited etc).
Now, I want to untrack this file.
I have done it temporalily by doing git checkout -- shouldnottrack.file
but this works only once
How can I untrack this file? (GUI, command, any method ok)
If I include this file in the .gitignore file, will git untrack it automatically?