2016-10-29 7 views
1
원격

에 URL을 가져 추가 할 나는 다음과 같은 상황이 :자식 내의 repo에서

$ git remote -v 
origin http://repoA/_git/libs (fetch) 
origin http://repoB/libs.git (push) 
origin http://repoA/_git/qpp_libs (push) 

내가 repoB에서도 가져 오려는을. 이것은 내가이 달성하고 싶었 방법입니다

git remote set-url --add origin http://repoB/libs.git 

을하지만, 위의 명령을 실행 한 후 여전히 3의 URL이 있습니다 :

$ git remote -v 
origin http://repoA/_git/libs (fetch) 
origin http://repoB/libs.git (push) 
origin http://repoA/_git/qpp_libs (push) 

어떻게 aanother URL을 가져 추가하려면 어떻게해야합니까?

답변

2

here과 같이 다른 리모컨이 필요하다고 생각합니다. 나는 또한 그렇지 않으면 좋은 작업 패턴이 아니라고 생각합니다. here을 말했듯이

그래서 염두에두고을 가지고, 당신은 시도 할 수

git remote add <shortname> <url>