GIT

GIT

.gitignore cache

기존 존재하는 프로젝트에서 .gitignore 에 대한 파일 업데이트를 해도 반영 되지 않는 현상이 있다. 이유는 파일 업데이트 하기전 stage에 올라간 파일들을 cache 처리되어 기록되고 있기 때문이라고 한다. git rm -r --cached . git add. git commit -m "clear git cached" ※ 참고 https://webruden.tistory.com/134

GIT

명령어 정리

git config --global user.name [name] git config --global user.email [mail] : 전역 사용자 등록 git config --unset --global user.name git config --unset --global user.email : 전역 사용자 삭제 git remote add [name] [url] : 원격 저장소를 추가 git remote -v : 현재 프로젝트의 등록된 원격 저장소 name과 url 확인 가능 git clone [url] : 해당 저장소의 파일을 clone한다(remote name은 origin으로 설정된다.) git add -p : 파일을 스테이지에 올리는 단계를 상세히 보여주며 확인가능.(y:올리기, n:올리지 않기,..

dolzi
'GIT' 카테고리의 글 목록 (2 Page)