我对 git 很陌生。我想创建一个名为 Common-Lib 的存储库,下面是我使用的命令。
E:\My Doc\programming\git\Common-Lib>touch README
E:\My Doc\programming\git\Common-Lib>git init
Initialized empty Git repository in E:/My Doc/programming/git/Common-Lib/.git/
E:\My Doc\programming\git\Common-Lib>git add README
E:\My Doc\programming\git\Common-Lib>git commit -m "first commit"
[master (root-commit) 5e25a0d] first commit
0 files changed
create mode 100644 README
E:\My Doc\programming\git\Common-Lib> git remote add origin https://github.com/fxbird/Common-Lib.git
E:\My Doc\programming\git\Common-Lib>git push -u origin master
fatal: https://github.com/fxbird/Common-Lib.git/info/refs not found: did you run git update-server-info on the server?
E:\My Doc\programming\git\Common-Lib>git update-server-info
E:\My Doc\programming\git\Common-Lib>git push -u origin master
fatal: https://github.com/fxbird/Common-Lib.git/info/refs not found: did you run git update-server-info on the server?
E:\My Doc\programming\git\Common-Lib>
即使在运行之后git update-server-info
,它仍然会抛出同样的错误,这是为什么呢?谢谢。