[英]SourceTree terminal can't push, GUI can push
推入終端時我得到了這個:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master Pushing to ssh://xxxxx@git.mydomain.de/srv/git/MyFolder/MyProject.git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
推入 GUI 時我沒有遇到任何問題。
我使用 ssh 身份驗證。 關閉登錄面板后每 3 分鍾彈出一個登錄面板,我不確定它是否正常。
我做錯了什么?
您可以檢查密鑰是否已加載到代理,如果沒有,則手動加載它們。 這與 Sourcetree 一起工作得很好。
要檢查密鑰是否已加載,請使用此命令
ssh-add -l
要加載密鑰,請使用此命令
ssh-add <path_to_key>
例如,
ssh-add ~/.ssh/id_rsa
另外,請檢查在首選項中添加的帳戶和用於克隆匹配協議的遠程 URL(均為 ssh)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.