2012-05-08 3 views
0

다음 명령을 삭제하는 방법 :원격 자식 지점하지만 경기 지역 지점이있다, 원격 하나 개

$ git branch -a

* develop 
    master 
    remotes/origin/HEAD -> origin/develop 
    remotes/origin/develop 
    remotes/origin/feature/foo 
    remotes/origin/master 

를 산출하지만 remotes/origin/feature/foo 분기를 원하지 않는다 . 이걸 갖기 위해 내가 무엇을 할 수 있었 을까? 어떻게 삭제합니까?

나는이 시도했다 :

git push origin --delete origin/feature/foo

을하지만 난이 얻을 :

error: unable to push to unqualified destination: origin/feature/foo 
The destination refspec neither matches an existing ref on the remote nor 
begins with refs/, and we are unable to guess a prefix based on the source ref. 
error: failed to push some refs to '...my remote repo...' 

어떤 아이디어? 많은 감사 :). 당신이

git push origin feature/foo 

git 전화

답변

3

정말

git push origin feature/foo:feature/foo 

이 무엇을 의미 "feature/foo (오른쪽) 리모컨을 feature/foo (왼쪽)를 밀어 본다.

git push origin :feature/foo 

"아무것도 입력하지 않음"을 feature/foo

관련 문제