본문 바로가기

Git

yarn deploy 시 Failed to get remote.origin.url 해결하기

728x90

1. yarn deploy

정상적으로 작동 되지 않고 

 


Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option) 라는 에러가 발생했다.

2. origin 추가하기

git remote add origin {git 레포주소}

를 이용해 추가해준다.

3. 해결

평소에 origin으로 remote 를 지정하지 않고 프로젝트 명으로 하다 보니 에러가 발생했다.

728x90

'Git' 카테고리의 다른 글

Git 여러 Repository 로 push 하기  (0) 2023.02.02
Git 에서 특정 branch clone 하기  (0) 2023.02.01