2013-05-11 28 views
1

我試圖爲我的maven項目配置jgitflow插件,並且我已將<scm>標記添加到我的pom.xml。不過最初我用,而不是HTTPS URL,從那以後(甚至當我刪除<scm>標籤或更改URL爲https)我得到任何這SSH網址:如何返回到使用https而不是ssh

[[email protected] myproject]$ git push 
The authenticity of host 'bitbucket.org (207.223.240.181)' can't be established. 
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40. 

或本:

Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

我如何返回到使用https?

回答

3

我自己找到了解決方案。我不得不編輯配置文件:.git/config

[core]部我不得不改變的url值以使用https://[email protected]代替[email protected]

+1

清潔器解決方案將是下面的命令: 'GIT中遠程設置URL原點GIT中://new.url.here ' 但你的作品也是如此。 ;-) 來源:http://stackoverflow.com/a/2432799/598560 – Bondt 2013-11-28 11:06:53

相關問題