Gitignore If Using Maven, Netbeans, and JAVA

Here i want to share my expierence about using git. If you store your source code in git in particular using IDE or Maven. You need to discard some files which are the result of genereted build program.

This is that you have to store in your .gitignore file.



       
# NetBeans specific #
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml

# Class Files #
*.class

# Package Files #
*.jar
*.war
*.ear

# Maven #

.classpath
.project
.settings/
target/

# Vim temporary files #

*~

If your gitignore doesn't work you maybe need to delete your cahce. I found this solution in stackoverflow. This is what you have to do.

       

git rm . -r --cached
git add .
git commit -m "fixed untracked files"



I think that is all for today.
Bye bye for now :D.
Have nice day.

Popular posts from this blog

How to restart the app with flutter Android and iOS

Missing system image Android Studio solution

How to have ConstraintLayout inside ScrollView and ScrollView inside ConstraintLayout Android