簡體   English   中英

無法推送到 sourcetree 上的分支

[英]Unable to push to branch on sourcetree

嘗試推送時出現此錯誤

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master remote: Permission to Eternum101/PharmaCare-System.git 拒絕 JakeNicholasSmith。 fatal: unable to access ' https://github.com/Eternum101/PharmaCare-System.git/ ': The requested URL returned error: 403 Pushing to https://github.com/Eternum101/PharmaCare-System.git

似乎您未通過身份驗證。 看看這個:

https://community.atlassian.com/t5/Sourcetree-questions/Entering-in-a-password-in-SourceTree/qaq-p/251748

對不起,我應該發表評論,但是我沒有足夠的聲譽。

如果在將任何分支拉入 sourceTree 中的當前分支時出現以下錯誤:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
The server's host key is not cached. You have no guarantee
that the server is the computer you think it is.
The server's ssh-ed25519 key fingerprint is:
ssh-ed25519 255 SHA256:FNsg*****
If you trust this host, enter "y" to add the key to

如果您在使用 SourceTree 執行 git 推/拉操作時收到有關主機密鑰未捕獲的消息。 Go 到 SourceTree 工具 -> 選項(常規選項卡)並將 SSH 客戶端(在 SSH 客戶端配置下)從 PuTTY 更改為 Open.SSH 將允許將密鑰緩存到 Open.SSH 下

保存私鑰:下載 Putty: 下載 PuTTY

  1. 安裝后,從開始菜單中搜索並打開 puttygen。
  2. Select 生成,然后在空白區域單擊並移動鼠標。
  3. 保存私鑰

最后運行以下命令: git config pull.rebase false

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM