#git
git pull 시 stash 또는 merge를 먼저 하라는 안내가 나올 때가 있다.
중요하지 않은 파일을 덮어쓰기 해도 무방할 경우 덮어쓰기 하는 것이 빠르다.
- git pull 받을 목록을 repository에서 업데이트
git fetch --all
- git reset으로 head를 최신으로 가리킨다
git reset --hard origin/main
- git pull로 확인
git pull
'개발 관련 > git' 카테고리의 다른 글
warning in the working copy of 'file', LF will be replaced by CRLF the next time Git touches it (1) | 2023.11.12 |
---|---|
git 특정 파일 가져 오기 (0) | 2023.11.12 |
git ssh key 암호화 인증 방법 (0) | 2023.11.12 |
git pull 명령어로 인해 파일이 삭제되었을 때 (0) | 2023.11.12 |
git commit error pathspec 'first Commit' did not match any file(s) known to git (0) | 2023.11.12 |