이 코드가 붙어 있습니다. git fetch 후에 나는 벽을 만났고 GitHub 서버에 모든 커밋 된 파일을 가져 오기 위해 다음 단계를 만들어야하는지 모른다. 이제 새로운 저장소를 저장할 때 자동으로 만들어진 하나의 README.md 파일 만있다. 도와 주셔서 감사합니다.GitBash | 원점 마스터 - 거절 (첫 번째 페치) | GitHub 저장소에 파일이 없습니다.
Freeware [email protected] MINGW64 ~/Desktop/Coding Staff/MustBeDone (master)
$ git status
On branch master
nothing to commit, working tree clean
Freeware [email protected] MINGW64 ~/Desktop/Coding Staff/MustBeDone (master)
$ git remote add origin https://github.com/adambugaj/Lets-code.git
Freeware [email protected] MINGW64 ~/Desktop/Coding Staff/MustBeDone (master)
$ git push -u origin master
To https://github.com/adambugaj/Lets-code.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/adambugaj/Lets-code.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Freeware [email protected] MINGW64 ~/Desktop/Coding Staff/MustBeDone (master)
$ git fetch origin master
warning: no common commits
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/adambugaj/Lets-code
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
로컬에없는 작업이 리모컨에 포함되어있어 [git : updates가 거부되었습니다.] (https://stackoverflow.com/questions/24357108/git-updates-were-rejected-remote-contains-work-that-do-not-have-를 가지고 있기 때문에) – phd