git rm --cached src/main/resources/application.properties
먼저 깃허브에 올려져 있는 application.properties 제거
### Ignore application.properties ###
/src/main/resources/application.properties
.gitignore파일에 다음 코드 추가
git commit -m "Remove application.properties"
변경 사항 커밋하기
git push origin <현재 작업중인 디렉터리>
변경사항을 원격저장소에 있는 디렉터리에 푸쉬
'git | github' 카테고리의 다른 글
커밋 메시지 한글깨짐 해결방법 (0) | 2024.12.27 |
---|---|
브랜치 (생성/삭제) 명령어 (0) | 2024.12.27 |
팀프로젝트 git 정리 (0) | 2024.06.24 |
IntelliJ 에서 Git Repository 연결 끊기 (0) | 2024.06.24 |
git 용어정리 (0) | 2024.06.24 |