2014-04-20 41 views
-1

我想創建項目並將其推送到bitbukcet回購。此用戶帳戶沒有配置密碼 - bitbucket

我也跟着指示:

cd /path/to/my/repo 
git remote add origin https://[email protected]/nazar_lelyak/blog.git 
git push -u origin --all # pushes up the repo and its refs for the first time 
git push -u origin --tags # pushes up any tags 

但我抓住了一條消息:

[email protected]:~/Documents/rails/blog⟫ git push -u origin --all 
remote: abort: this user account (nazar_lelyak) does not have a password configured - to use your account over HTTPS, it is necessary to have a password set. 
fatal: unable to access 'https://[email protected]/nazar_lelyak/blog.git/': The requested URL returned error: 412 

我使用github上。它有一些ssh密鑰生成選項。

在Bitbucket中是否存在類似的東西?

SOLUTION:

能夠使用相同的ssh鍵時,Github上產生 - Generating SSH Keys。現在一切正常。

回答

2

它有一些ssh密鑰生成選項。

也許是這樣,但你沒有如果您使用HTTPS URL使用SSH的網址爲您的回購

git clone [email protected]:nazar_lelyak/blog.git 

,SSH公開/私有密鑰將被完全忽略。

+0

我誤解了......如何解決這個麻煩,有什麼建議? –

+1

@nazar_art您可以將密碼與您的bitbucket帳戶關聯(如https://answers.atlassian.com/questions/245137/bitbucket-failing-for-lack-of-password-but-not-requesting-it) ,或者生成新的SSH公鑰/私鑰(https://confluence.atlassian.com/display/BITBUCKET/Add+an+SSH+key+to+an+account) – VonC

相關問題