Reputation: 5112
I've created a Bitbucket account for sharing code with friends. When I try to clone the repository, with the command
$ git clone https://[email protected]/wallstrass/wall-strass.git
they say :
$ git clone https://[email protected]/wallstrass/wall-strass.git
Cloning into 'wall-strass'...
fatal: https://[email protected]/wallstrass/wall-strass.git/info/refs not
found: did you run git update-server-info on the server?
I've tried to do the command "git update-server-info" but it doesn't work. I don't unterstand what to do, have you an idea please ?
[Update] Here are my commands :
XXXX-PC /c/repos (master)
$ export http_proxy="http://XXXXX"
XXXX /c/repos (master)
$ export https_proxy="https://XXXXX"
XXXX /c/repos (master)
$ cd c:/repos
XXXX /c/repos (master)
$ git init
Reinitialized existing Git repository in c:/repos/.git/
XXXX /c/repos (master)
$ git remote add origin https://[email protected]/wallstrass/wall-strass
.git
fatal: remote origin already exists.
XXXX /c/repos (master)
$ echo "# This is my README" >> README.md
XXXX /c/repos (master)
$ git add README.md
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
XXXX /c/repos (master)
$ git commit -m "First commit. Adding a README."
# On branch master
nothing to commit (working directory clean)
XXXX /c/repos (master)
$ git push -u origin master
fatal: https://[email protected]/wallstrass/wall-strass.git/info/refs not
found: did you run git update-server-info on the server?
Upvotes: 3
Views: 7797
Reputation: 25
put this https://[email protected]/wallstrass/wall-strass.git instead of
$ git clone https://[email protected]/wallstrass/wall-strass.git
Upvotes: -1
Reputation: 165182
Sounds like the HTTPS transport is somehow b0rked. Try cloning using the ssh transport:
git clone [email protected]:wallstrass/wall-strass.git
Upvotes: 0
Reputation: 5059
If you haven't yet pushed anything there, there isn't anything to clone.
When you have done your first commit, push it to bitbucket, and then you should be able to clone the repository.
Upvotes: 4