반응형
fatal: No configured push destination.
error message
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
and then push using the remote name
git push <name>
현재 위치의 폴더가 깃허브의 원격 레포지토리랑 연결이 안되있다는 뜻이다.
깃허브에 있는 자신의 리모트 레포지토리 원격 저장소(origin)와 연동을 해야한다.
command
git remote add <name> <url>
=> git remote add origin <원격 레포지토리 저장소 url>
정상적으로 깃허브 원격 저장소에 push 확인.
git push --set-upstream origin main
명령어를 해주면 정상적으로 깃허브 원격 저장소에 push된 것을 볼 수 있다
덤.
git init
-> 현재 로컬 폴더를 깃 로컬저장소로 만들어주는 명령어
반응형
'Language > Git' 카테고리의 다른 글
git ssl error ( git clone ssl certificate error ) (0) | 2022.06.18 |
---|---|
git push error (0) | 2022.06.17 |
Git Clone unrelated histories error (0) | 2022.06.16 |
Git(깃) origin? master? HEAD? 란 무엇인가? (0) | 2022.06.15 |
GIT Command 정리 1탄 ( git config / git ignore ) (0) | 2022.05.17 |