在 git 中心创建新存储库

make new repository in git hub

我在 GitHub 的某个位置有我的项目, https:github.com/vidurasilva/loging_Form.git

我一一使用命令也有错误,

C:\wamp\www\PhpProject>git remote add origin https:github.com/vidurasilva/Register_For_New.git
fatal: remote origin already exists.

C:\wamp\www\PhpProject>git push -u origin master fatal: unable to access 'https:github.com/vidurasilva/loging_Form.git/': Couldn't resolve host 'github.com'

C:\wamp\www\PhpProject>git remote set-url origin git@github.com:vidurasilva/Register_Form_New.git

C:\wamp\www\PhpProject>git push -u origin --all ssh: Could not resolve hostname github.com: Name or service not known fatal: Could not read from remote repository.

请确保您拥有正确的访问权限 并且存储库存在。

C:\wamp\www\PhpProject>git clone https:github.com/vidurasilva/Register_Form_New.git

正在克隆到 Register_Form_New... 致命:无法访问 https:github.com/vidurasilva/Register_Form_New.git/:无法解析主机 github.com

试试这个:

git remote remove origin
git remote add https://github.com/vidurasilva/Register_Form_New.git
git push origin master

可在 this article from GitHub support 中获得更多帮助。

首先解决这个问题

git remote add origin https:github.com/vidurasilva/Register_For_New.git 

有了这个

git remote add origin https://github.com/vidurasilva/Register_For_New.git 

然后解决这个问题

git clone https:github.com/vidurasilva/Register_Form_New.git

有了这个

git clone https://github.com/vidurasilva/Register_Form_New.git