반응형
250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- VPN
- Spring
- java bigdecimal
- codedeploy
- docker
- redis
- codebuild
- Flux
- 도커
- aws
- Spring Error
- aws cicd
- COALESCE
- kubeflow
- IntelliJ
- node
- Python
- Airflow
- chartjs
- chart.js
- bootstrap
- SQL
- codedeploy error
- PostgreSQL
- Jenkins
- AWS CI/CD 구축하기
- Kafka
- JavaScript
- openlens
- codepipeline
Archives
- Today
- Total
Small Asteroid Blog
.gitignore 작동하지 않을 때 / application.properties 업로드 안하고 싶을 때 본문
728x90
DB정보가 담겨있는 application.properties 내용을 깃에 업로드 안하고 싶어서
.gitignore 에 다음 경로를 추가했는데 여전히 application.properties 의 내용이 업데이트 되고 있었다.
/src/main/resources/application.properties
gitignore 을 사용하고 싶으면 기존에 버전관리 했던 내용을 삭제해줘야 한다.
git rm --cached D:/Users/Intellij/boardapi/src/main/resources/application.properties
위의 명령어 실행 후 변경사항을 푸시하면
git add .
git commit -m "message"
git push
gitignore 이 정상작동되고 application.properties 가 깃에 업로드 되지 않는다.
728x90
반응형
'도구 > Git' 카테고리의 다른 글
| [github] 티스토리 게시글 깃허브에 커밋으로 업로드하기 (0) | 2021.07.19 |
|---|---|
| git push 삭제 (0) | 2021.06.07 |
| git clone remote 차이 (0) | 2021.05.07 |
| 깃허브 프로필 꾸미기 - 깃허브 방문자 확인 (Hits) (1) | 2021.05.03 |
| github readme profile 만들기 (0) | 2021.05.02 |