minyoung

IntelliJ 빨간색 파일 해결 본문

Error

IntelliJ 빨간색 파일 해결

stylish-code 2023. 8. 4. 15:20
IntelliJ를 통해 Java 파일을 작성하는데 빨간색 파일이 뜨는 경우가 있습니다. 
이 경우의 해결방법을 알아보겠습니다.
IntelliJ 최상단 File -> Settings -> Version Control -> Git -> Enable Staging area에 체크 표시를 해줍니다.

enable staging area

체크 표시를 하면 아래와 같이 commit 탭에서 Staged와 Unstaged 파일을 확인할 수 있습니다. 

staged

 

unstaged

unstaged 파일들을 staged 파일에 옮겨준 다음, github 원격 저장소에 commit&push 해주면 됩니다~!