简体   繁体   English

sourcetree没有出现Authenticate

[英]sourcetree doesn't appear Authenticate

I am using SourceTree and I want to connect it with my GitHub repository. 我正在使用SourceTree,我想将其与GitHub存储库连接。 So I normally wanna use "push" for pushing my works to repository but It doesn't show me a authenticate pop up window. 因此,我通常希望使用“推”将我的作品推送到存储库中,但它不会显示身份验证弹出窗口。 and it keeps showing this paragraphs: 并且一直显示以下段落:

git -c diff.mnemonicprefix=false -c core.quotepath=false \
    -c credential.helper=sourcetree push -v --tags \
    --set-upstream origin refs/heads/master:refs/heads/master 

I maybe wrote wrong password yesterday. 我昨天可能写错了密码。 And I cannot fix it. 我无法修复它。
How can I fix it? 我该如何解决?

I am using MacOS, there are many solutions for windows but I cannot find it for Mac. 我正在使用MacOS,Windows有许多解决方案,但Mac却找不到。

One workaround would be to shift your URL from https (which does involve the "credential.helper=sourcetree") to SSH, provided you have setup a public key in your BitBucket account . 一种解决方法是,如果您在BitBucket帐户中设置了公共密钥,则将URL从https(确实涉及“ credential.helper =源树”)更改为SSH。
Preferably one without a passphrase for your private key, at least for testing. 最好至少为测试使用一个没有密码短语的私钥。

The other test would be to keep your HTTPS URL for the remote, and see of you can switch to the system Git (instead of the embedded Git) in SourceTree, and make sure you have: 另一个测试是保留远程的HTTPS URL,然后查看是否可以在SourceTree中切换到系统Git(而不是嵌入式Git),并确保您具有:

git config --global credential.helper osxkeychain

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM