2012-10-13 7 views
1

RedHat Openshift의 경우 로컬 호스트에 대한 복제에 대한 지침이 있습니다. git clone ssh : //[email protected]/~/git/jimX.git/힘내 및 레드햇 오픈 시프트

그래서 나는 시도 (내 로컬 호스트)/XAMPP/htdocs에/RHOS : (명령 프롬프트를 열고 C : 자식에 앉아 내가 원하는 무엇

는 C에서 폴더를 만드는 것입니다 클론 ssh : //[email protected]/~/git/xampp/htdocs/rhos.git/

그리고 난 오류가 발생합니다 : 치명적인 : 프로토콜 오류 : 나쁜 라인 파일 ngth 문자 : Inva

로컬 컴퓨터에서 jimX 형식으로 복제해야합니까?

c :/xampp/htdocs/rhos에 복제 할 명령은 무엇입니까?

감사합니다, 짐

답변

0

Git FAQ mentions :

It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode.

이를 테스트하려면, 수행

:뿐만 아니라이 blog post의 결론이었다

You should only see testing commands returned.
If there are any other characters, you should examine your dot shell rc file to find any echo or other commands that may produce output.

ssh ssh://[email protected] echo testing commands 

Ahh! This was the information I needed to solve the problem.
In my case the problem was actually that I had an ' echo ' in my .bash_profile and .bashrc , which affected the protocol.
Removing the echo fixed the problem.

0

방금 ​​같은 문제가 발생했습니다.

# replace leading tilde (~) with user's home path 
realpath = os.path.expanduser(thearg) 
if not realpath.startswith(config['GEAR_BASE_DIR']): 
    syslog.syslog("Invalid repository: not in openshift_root (%s) - %s: (%s)" % 
        (config['GEAR_BASE_DIR'], thearg, realpath)) 
    print "Invalid repository %s: not in application root" % thearg 
    sys.exit(3) 

는 그래서 Git 저장소는 홈 디렉토리에 당신을 떠나는 GEAR_BASE_DIR에 있어야한다 : 문제는 당신이 할당받을 쉘, OO 트랩 사용자가 다음과 같은 검사를 수행한다는 것입니다. 여기에 주요 문제의 ssh yourmachine git-receive-pack /path/to/your/location

0

하나는 망할 놈의 설정 파일이 해당 프로젝트에 대해,처럼 디버깅 할 수

은 떨어지게 않는다; 문제는이 파일을 올바르게 읽고 저장소에 연결하는 데 필요한 정보를 검색 할 수 없다는 것입니다.

줄마다 하나의 매개 변수 만 있고 배회하는 문자 나 공백이 없어야합니다. 구성 파일에서 이러한 오류를 발견 한 경우이 수정 프로그램을 사용하면 문제를 완화하고 다시 한 번 저장소에 액세스 할 수 있습니다.