
gitignore은 이거 ↓
https://www.toptal.com/developers/gitignore
gitignore.io
Create useful .gitignore files for your project
www.toptal.com
⛔react github올리는 시간 오래걸림
🤔사건
이상하다 생각했다.
npx create-react-app을 하고 git add .를 하면 상당한 시간이 걸렸다.
거의 20분 이상 걸렸다.
나는 그게 당연한 일인줄 알고 살았는데 스터디원분들은 그렇지 않다는 것을 알게 되었다.
😎해결
gitignore의 작성의 유무였다.
난 gitignore을 사용하지 않았다.
그래서 node_modules을 ignore하지 않아서 오랜시간이 걸렸다
이걸 ignore하니까 진짜 5초도 안걸렸다 약간 허무...
🤓추가
mac에서 window로
window에서 mac으로 이동 하는 경우
.DS_STORE, thumb.db 와 같은 파일 이 생성 될수 있다고 한다.
이런것도 ignore로 설정하면 레포지토리가 더러워지는걸 방지 할 수 있다!!

❌안전제일❌
'정보 > 오류노트' 카테고리의 다른 글
| [env] js에서 env파일 undefined /오류 코드 : "MongoServerError: bad auth : Authentication failed." (0) | 2022.12.15 |
|---|