2014-12-25 17 views
1

我已經安裝了git併爲我的項目添加了github作爲遠程repo,現在我已經使用它幾個月了,無論是從git bash還是「github for window」客戶端(或者電源外殼隨之而來的)。配置github與多個終端一起工作

這一切都工作正常,但現在我剛剛開始使用webstorm IDE,它有自己的IDE終端,從這個終端我可以執行所有的git工作流命令,但是當我做「git push github master」時每次都要求輸入我的用戶名/密碼,這讓我非常開心(儘管一旦我提供了我的憑據,它一定會推動我的更改)。我怎麼能繞過這個?

雖然我沒有要求我的憑據在git bash或powershell上!

+0

嘗試配置的git bash或PowerShell的作爲外殼是由內置終端使用(設置/工具/終端,Shell路徑) – lena

+0

我現在配置了「git bash」,並且它按照預期工作,讓我們看看它是否限制了我在終端上做更多的功能。 – Monk789

回答

0

這是一個Webstorm IDE功能,不是git的功能。你想Webstorm存儲您的git密碼:

要配置密碼策略

Open the IDE Settings, then clickPasswords. 
On the Passwords page that opens, specify how you want WebStorm to process passwords for Git remote repositories. 

Do one fo the following: 
    If you do not need WebStorm to save passwords at all, select the Do not remember passwords option. 
    To have passwords stored in the memory during a session, select the Remember passwords until closing of the application option. 
    To have passwords stored in a passwords database, select the Remember on disk (protected with master password) option and specify the master password for the storage. 

(見https://www.jetbrains.com/webstorm/help/handling-passwords-for-git-remote-repositories.html#d328641e233l瞭解更多信息)

+0

這並沒有爲我工作,即使在webstorm中設置主密碼默認終端(cmd.exe)仍然要求github用戶名/密碼,只要我在做「git push .....」 – Monk789

相關問題