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
- 코딩테스트
- JS
- TypeScript
- 자바
- git
- java
- redux
- JavaScript
- media query
- node.js
- 변수
- HTML
- webpack
- 그럼에도 불구하고
- @media
- frontend
- cleancode
- max-width
- Servlet
- 반응형 페이지
- 프론트엔드
- 자바문제풀이
- github
- react
- CSS
- 코드업
- node
- 그럼에도불구하고
- coding
- react-router-dom
Archives
- Today
- Total
그럼에도 불구하고
[Git, GitHub] .gitignore가 작동하지 않을때 대처하는 법 본문
.gitignore가 작동하지 않을때 대처하는 법에 대해 알아보겠습니다.
.gitignore가 제대로 작동되지 않아서 .gitignore에 게시된 파일이 github에 계속 올라가 있는 경우가 있습니다.
git의 캐시가 문제가 되는거라 아래 명령어로 캐시 내용을 전부 삭제 후 다시 add All해서 commit하면 됩니다.
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
ref: https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git
'이모저모 > Git, GitHub' 카테고리의 다른 글
[Git, GitHub] Git과 GitHub의 차이점은 무엇인가? (0) | 2023.06.22 |
---|---|
[Git, GitHub] Git이란 무엇인가 ? (0) | 2023.06.22 |
[Git, GitHub] Mac Git clone 사용하기 (0) | 2023.03.29 |
[Git, GitHub] ! [rejected] master -> master (non-fast-forward) 해결 방법 (0) | 2023.01.02 |
[Git, GitHub] Git 설치, 업로드, 업데이트하는 법 (0) | 2023.01.02 |
Comments