2020/08(7)
-
[Git] 특정 커밋에서 파일 삭제
하... 동국대 서버 비밀번호가 포함된 특정 파일까지 푸시해버려서 난감했다. 커밋 하나하나 다 돌아가서 지우는 방법 말고 다른 방법이 있나 찾아봤더니 있었다. git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 파일명' --prune-empty --tag-name-filter cat -- --all git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch 폴더명' --prune-empty --tag-name-filter cat -- --all 파일명은 무조건 깃허브에 올라간 디렉토리 기준으로 경로명을 작성해주어야한다. 사용 예는... git ..
2020.08.21 -
[React] 에러 ㅜㅜ 대책
A component is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. 다음과 에러는 참고자료를 봤을 때 input 의 value에 undefined가 들어갔을 경우에 대한 처리가 없다는 것과 관련되는 것 같다. 그래서 해결책은...! input의 value가 undefined일 때 ''가 들어올 수 있도록 하면 된다. 1..
2020.08.09