문제
error pathspec 'first Commit' did not match any file(s) known to git
이유는 commit 뒤에 스페이스 기준으로 parameter가 3개, 즉 -m, ‘initial, commit’ 이렇게 3개가 잡혀서 그런것이었다.
Windows에서 문자열을 입력할 때는 쌍따옴표로 감싸야 한다.
해결
git commit -m "Initial commit"
'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 pull 명령어로 인해 파일이 삭제되었을 때 (0) | 2023.11.12 |