I am learning to use git by doing a simple project in Java without using a development environment (compiling directly from the terminal). I want git to ignore the files .class
that as you already know are the Java binaries.
I've been researching how to do this and what I have to do is create a file .gitignore
with a line that contains the following rule: *.class
.
The problem I have is that I do not know where to put that file, I guess in the root directory of my project or in the .git
directory. Has anyone ever done this and can you help me?
PS: I am using Windows using the program that I downloaded from the official page .