Git Push失败,在Windows中返回403

问题描述 投票:1回答:3

环境

  • 客户端:Windows
  • 服务器:Gogs

我想将某些源推送到git存储库。

但是要推动它有一些问题。

错误消息在下面:

D:\workspace\excel-demo>git push -u origin master Counting objects:
42, done. Delta compression using up to 8 threads. Compressing
objects: 100% (28/28), done. Writing objects: 100% (42/42), 50.75 KiB
| 2.82 MiB/s, done. Total 42 (delta 2), reused 0 (delta 0) error: RPC
failed; HTTP 403 curl 22 The requested URL returned error: 403
Forbidden fatal: The remote end hung up unexpectedly fatal: The remote
end hung up unexpectedly Everything up-to-date

我已在test@~~~~/~~~.git之类的远程信息中设置了凭据>

我该怎么办?

环境客户端:Windows服务器:Gogs,我想将某些源推送到git存储库。但是要推动它还有一些问题。错误消息如下:D:\ workspace \ excel-demo> git push -u ...

windows git push gogs
3个回答
2
投票

[test@~~~~/~~~.git不是“凭证”(登录名/密码),而是SSH URL,这意味着:以“ test”用户身份连接到远程服务器,并使用~~~.git作为远程Git存储库目的地。


0
投票

[起初我以为我可能是-u选项广告master已经设置好了,但是您会收到一条不错的git消息。


0
投票

尝试使用:git push origin master

© www.soinside.com 2019 - 2024. All rights reserved.