1. github push 내역 강제삭제 (협업시 위험)
아래 세 줄로 강제삭제.
git log --oneline
git reset --hard "해당commit"
git push -f origin master
관련하여 아래 출처 블로그 참조할것.
https://ninano1109.tistory.com/3
2. gitignore 안될 때 대처
아래 세 줄로 gitignore 활성화
//git cache 삭제
git rm -r --cached .
git add .
git commit -m "커밋메지시입력"
아래 블로그 참조할것
'node.js project' 카테고리의 다른 글
aws ec2에서 react 웹페이지 배포하기 (0) | 2023.05.28 |
---|---|
깃 초기화 방법 (0) | 2023.05.28 |
aws ubuntu를 github에 연결하기. (0) | 2023.05.28 |
thunder client 에서 url입력과 브라우저 url 입력은 대체로 같은 효과다 (0) | 2023.04.24 |
express 그리고 middelware 다시 정리! (0) | 2023.04.24 |