我創建了一個Bitbucket帳戶用於與朋友共享代碼。當我嘗試克隆庫,用命令Bitbucket存儲庫
$ git clone https://[email protected]/wallstrass/wall-strass.git
他們說:
$ 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?
我試圖做的命令「git的更新服務器的信息」,但它不工作。我不打算做什麼,你有想法嗎?
[更新]以下是我的命令:
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?
好了,謝謝你。我嘗試這樣做:$ echo「#這是我的README」>> README.md,然後$ git添加README.md,然後$ git commit -m「第一次提交。添加一個README」,然後$ git推-u起源的主人。但在第四行,Git Bash不回答我的請求(並被阻止)。我使用代理,但是我已經用正確的值定義了http_proxy。 – Arnaud
既然你指的是原產地,你是否設置了遙控器?例如。 'git remote add origin https:// wallstrass @ bitbucket.org/wallstrass/wall-strass.git' –
我在第一條消息中寫了所有的命令。 (事實上,Git Bash回答最後一個命令,但仍然存在問題) – Arnaud