2011-11-01 5 views
0

나는 mistakely (이 "와) 지점"샌드 박스 "를 만들어, 나는 그것을 삭제하려고 할 때, 나는이 메시지를 받고 있어요 :이름에 잘못된 문자가있는 분기를 제거하는 방법은 무엇입니까?

$ git push origin :”sandbox” 
remote: Traceback (most recent call last): 
remote: File  "/opt/python/domains/bitbucket.org/current/bitbucket/scripts/git/hooks/pre-receive", line 12, in <module> 
remote:  sys.exit(prehooks.githooks()) 
remote: File "/data/vol1/www/venvs/deployed/bitbucket/apps/repo2/git.py", line 1197, in wrapper 
remote:  sha = repo._repo.lookup_reference(refname).sha 
remote: pygit2.GitError: Failed to lookup reference 
remote:  - Failed to normalize name. Reference name contains invalid characters 
To ssh://[email protected]/user/git-repo.git 
! [remote rejected] ”sandbox” (pre-receive hook declined) 
error: failed to push some refs to 'ssh://[email protected]/user/git-repo.git' 

내가 UTF8 터미널로 urxvt 사용하려고합니다.

내가 bitbucket.org에 githosting 한

감사 Zopper

+0

이미 푸시 했습니까? – thejh

+1

@thejh와 유사한 맥락에서 나는 당신이 따옴표가있는 브랜치를 만들었는지 확신하고 있는가? 방금 다음과 같은'git branch '무언가를 시도했고'something'이라는 이름의 브랜치가 생성되었습니다. –

+1

@SriSankaran, OP는 U + 0022 (따옴표)가 아닌 U + 201D (오른쪽 큰 따옴표)에 대해 구체적으로 말하고 있습니다. bitbucket의 코드가 UTF-8을 제대로 처리하지 못하는 것 같습니다. – jamessan

답변

0

당신은 인용 부호 (+ 0022 U)에 안전하게 저장소 이름을 쓸 수 있습니다.

git push origin --delete "”sandbox”"