집에서 내 GitHub 저장소를 복제하여 분명히 망쳐 놨습니다. 어쨌든, 나는 많은 변화를 만들었습니다. 아니면 디렉토리를 없애고 다시 할 것입니다.이 상자의 GitHub으로 푸시 할 수 없습니다.
PTY allocation request failed on channel 0 ERROR: Hi asdfadfs! You've successfully authenticated, but GitHub does not provide shell access Connection to github.com closed.
오류가 발생합니다,하지만 내가 성공적으로 인증 한 말한다 : 나는 ssh [email protected]
을 수행 할 때 나는 다음과 같은 얻을
첫째,?
git add .
git commit -a -m "hello"
git push origin master
[master 74a5e82] hello
3 files changed, 45 insertions(+), 12 deletions(-)
fatal: The remote end hung up unexpectedly
이것은 분명히 작동하지 않습니다. 그리고 힘내에 새로 온 사람, 그래서 커밋 할 때 지금이 상황이 발생합니다
git add .
git commit -a -m "hello"
git push origin master
# On branch master
nothing to commit (working directory clean)
fatal: The remote end hung up unexpectedly
그리고 마지막으로, git pull
?
$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either. Please
specify which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:
branch.master.remote = <nickname>
branch.master.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>
See git-config(1) for details.
여기 url 변수가 실제로 내 올바른 자식 URL을 가리 내 .git/config에
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[branch "master"]
[remote "origin"]
url = git://github.com/my/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
입니다. 감사.
뜨아 - 스트레이트 내 libcloud 저장소에서이 게시물에 무관 한 이유로 "모선"를 사용합니다. 긴 하루. 감사. – mculp
나도 너를 느낀다. :) –
이것을 수정하는 쉬운 방법은'~/.gitconfig' 파일에 이것을 추가하는 것입니다 : https://gist.github.com/412f0b1c8841cceed750 – henrikhodne