[Git] 리포지토리에 추가되지 말아야 할 파일 정의하기
·
ETC/Git
깃을 사용하다 보면 올리지 말아야 할 파일들이 있다.예를 들면 .env 파일등은 올리면 안 된다.그럴 때 제외하는 목록을 작성하는 파일이 .gitinore이다..gitignorenode_modulesdistsetup.env 팁https://www.toptal.com/developers/gitignore gitignore.ioCreate useful .gitignore files for your projectwww.toptal.com에서 운영체제 , 개발 환경 , 프로그래밍 언어를 입력하면 기본적인 파일을 생성해준다.
[Git] 이미 올라간 파일 .gitignore 적용하기
·
ETC/Git
git rm -r --cached . git add . git commit -m "[커밋메시지]" git push [remote] [branch]
[Git] 초기 세팅 하기
·
ETC/Git
환경설정환경설정하기 git config --global user.name "이름" git config --global user.email "이메일"현재 config 확인 git config --listconfig 삭제 git config --unset user.name git config --unset user.email 글로벌로 설정시 git config --unset --global user.name git config --unset --global user.emailRepository (저장소) 깃허브에 있는 Repository 로컬에 다운받아 작업하기방법 1. git init 2. git clone "깃허브에서 내려받을 주소" 3. ..