79641886

Date: 2025-05-28 09:20:22
Score: 1
Natty:
Report link

I have faced similar problem for one of the files in my spring boot project as it was not added in the project and somehow in the git commit too. It was not showing in the main branch of the git where I have merged my changes earlier so,

  1. All I did is created another branch from the main into my local

  2. then renamed that file into fileName_Temp.java which was showing orange in local as it was already there

  3. then created new java file fileName.java and copy pasted everything from temp(fileName_Temp.java) to current file(fileName.java)

  4. then committed my changes again and merged this new branch after commit into main branch

This solved my problem.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: varun rao