小编Ale*_*eds的帖子

git push error:请求的URL返回错误400

我是Git的新手,我正在尝试使用Git Bash将Java项目推送到Github.

这就是我做的:

  • 在GitHub中创建了一个Blog存储库

  • 在Git Bash

    $ cd C:/ Users/Alessandro/workspace/BLOG

    $ echo"#Blog">> README.md

    $ git add --all

    $ git commit -m"初始提交"

    $ git remote add origin https://github.com/alerossi82/Blog

    $ git push -u origin master

但是当我做推动时,这是我得到的结果:

致命:无法访问" https://github.com/username/repository/ ":请求的URL返回错误:400

我在某处读到这可能是登录问题,但我在GitBash中检查了我的配置,用户名和电子邮件与GitHub匹配.当我提交推送时,我登录到我的GitHub帐户,我没有从GitBash收到任何插入密码请求.

然后我尝试直接从Eclipse推送项目,但这也失败了,事实上当我推送更改时,我收到消息: - master >> master [被拒绝 - 非快进]

我完全迷失了,我认为所有步骤都是正确的,但看起来我的本地和远程存储库不想互相交谈,我不知道为什么.

有帮助吗?

git github git-push

5
推荐指数
1
解决办法
9385
查看次数

标签 统计

git ×1

git-push ×1

github ×1