cividinilucas / java-minecraft-plugin

new java learnings using java bukkit/spigot
0 stars 0 forks source link

Add .gitignore to the project #1

Closed gabrielgusn closed 4 months ago

gabrielgusn commented 4 months ago

I think it is a good practice to add a .gitignore to your project, to avoid bringing binary files (like .jar and .class in Java). You can check some .gitignore templates in this repository: gitignore templates

Basically, any pattern of file name you type in the .gitignore wont be considered by the git software while managing your commits.

As it is a Java project, you could just add a .gitignore in the root directory of the repository with the following content:


*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*```
cividinilucas commented 4 months ago

thanks man, ill see of course, appreciate for the tip ;)