What I have done:
git init
git remote add master www.xyz.org/git/arkad
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
I have http access to the remote git.
How to fix this?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You added a remote called “master”, not “origin”. In your case you would need to do:
You probably want to read the man page for git remote, and you might now want to rename your remote to
origin:Additionally it appears you didn’t specify a protocol to use to talk to the remote: it will probably be either
ssh://orgit://. Given the fact there are two problems with your remote config you might want to do the following to correct your configuration:Note: this assumes that you need to talk to the server over the ssh protocol, as noted above it could also be that you need to use the git protocol instead.
More useful help can also be found here courtesy of the awesome guys at github.com.