2017-12-09 13 views
0

나는 몇 년 동안 가지고있는 Heroku의 앱을 가지고 있지만, 이제는 일부 코드를 리팩터링하고 일부 보석을 업데이트해야합니다.이 github/heroku 충돌을 해결하는 방법

처음 앱을 시작했을 때 나는 전혀 다른 기계를 사용하고있었습니다. 그래서 그 앱에 github repo를 복제해야했습니다.

는 이제 첫 번째 변화를 추진하고자하지만이 오류 얻을 :

set git remote heroku to https://git.heroku.com/alfa-blog.git 

내가 그것을 이런 식으로 뭔가 할 나 한테 물어 줄 알았는데 :

git remote add heroku https://git.heroku.com/alfa-blog.git 

을하지만이 오류가 발생합니다 :

fatal: remote heroku already exists. 

어떻게 해결합니까? 불분명 한 점이 있으면 알려 주시기 바랍니다.

원본 원어를 삭제합니까?

$ git remote rename https://git.heroku.com/alfa-blog.git https://github.com/ldco2016/Alpha_Blog.git 
fatal: No such remote: https://git.heroku.com/alfa-blog.git 
+0

@SebastianPalma, 나는 heroku 하나를 삭제합니까? 위의''git remote -v''' 결과를 추가했습니다. – Ale

+0

리모컨의 이름을 바꾸는 데 문제가 있습니다. 내가 위에 올라가고있는 것을 게시 할 것이다. – Ale

+0

내가 할 때,''치명적 : 아니 리모컨 : alfa-blog'''''$ git remote rename alfa-blog Alpha_Blog''' – Ale

답변

1

: 다음

git remote set-url origin https://github.com/<github-page>Alpha_Blog.git 

기존 응용 프로그램에 새로운 변화를 추진 할 수 있어야한다 Heroku에.

+0

이렇게 해냈습니다, 고마워요. – Ale

0

원격 지금 다른 URL로 설정됩니다

heroku https://git.heroku.com/alfa-blog.git (fetch) 
heroku https://git.heroku.com/alfa-blog.git (push) 
origin https://github.com/<github-page>/Alpha_Blog.git (fetch) 
origin https://github.com/<github-page>/Alpha_Blog.git (push) 

원격 REPO의 이름을 변경하려고? 그것을 제거한 다음 다시 시도해 볼 수 있습니다. 당신은 이런 식으로, 현재 작업하고있는 REPO 단지 set-url, 제거 또는 아무것도의 이름을 바꿀 필요가 없습니다