Search code examples
gitatlassian-sourcetree

git add unchanged files into "unstaged files"


git is adding unchanged files into "unstaged files"

enter image description here

As you can see, these files are added into the "Unstaged files" section, but when I click on them, no changes are made.

What is causing this and how to fix it?


Solution

  • It's compiled classes, as mention before they must be ignored. In root folder of project create .gitignore file and add there rows

    out/
    .idea/
    

    No changes are made because you didn't start to tracking them, so basically all file is "one big change"