문제)
해결)
git fetch
현재 내 깃저장소의 최신 상태를 받아오는 로컬 저장소로 가져오는 명령이다. 따라서 이 에러의 원인은 깃저장소와 로컬조장소가 동기화 되어있지 않기 때문이다.
참고)
git push origin master
origin은 원격 저장소의 주소를, master는 현재 브랜치를 의미한다. 이때, 저장할 저장소가 origin이고 현재브랜치가 master이면 생략가능하다.
문제)
fatal: detected dubious ownership in repository at 'F:/git/practice'
'F:/git/practice' is on a file system that does not record ownership
To add an exception for this directory, call:
git config --global --add safe.directory F:/git/practice
해결)
처음 git 디렉토리의 위치를 이동식디스크로 지정을 했다. 그러니, 내 피씨 내의 메모리가 아니여서 위와 같은 에러가 발생한 듯 하다. 친절히 git config --global --add safe.directory F:/git/practice 라고 입력하면 된다고 한다.