我创建了一个 Bitbucket 帐户,用于与朋友共享代码。当我尝试克隆存储库时,使用命令
$ git clone https://wallstrass@bitbucket.org/wallstrass/wall-strass.git
他们说 :
$ git clone https://wallstrass@bitbucket.org/wallstrass/wall-strass.git
Cloning into 'wall-strass'...
fatal: https://wallstrass@bitbucket.org/wallstrass/wall-strass.git/info/refs not
found: did you run git update-server-info on the server?
我尝试执行命令“git update-server-info”,但它不起作用。我不明白该怎么做,请问您有什么想法吗?
[更新]这是我的命令:
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://wallstrass@bitbucket.org/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://wallstrass@bitbucket.org/wallstrass/wall-strass.git/info/refs not
found: did you run git update-server-info on the server?