每次我想提交命令「git push heroku master」時,我在PowerShell中要求輸入憑據。當我輸入heroku證書(默認連接到git)時,我收到錯誤消息。推動更改Git無法正常工作
但是,當我鍵入包含在我的主目錄中的netrc文件中的憑證時,那麼這個東西就起作用了。但是我認爲密碼是散列的。每次我想將更改推送到git時,如何避免輸入憑據?
UPDATE:
PS C:\Users\Dragan\heroku_workspace\python-getting-started> git push heroku master
github --credentials get: github: command not found
Username for 'https://git.heroku.com': [email protected]
Password for 'https://[email protected]@git.heroku.com':
github --credentials erase: github: command not found
remote: ! WARNING:
remote: ! Do not authenticate with username and password using git.
remote: ! Run `heroku login` to update your credentials, then retry the git command.
remote: ! See documentation for details: Https://devcenter.heroku.com/articles/http-git#authentication
fatal: Authentication failed for 'https://git.heroku.com/mysterious-river-71834.git/'
什麼是你獲得錯誤信息?你應該只需要一次''heroku登錄'。 – Harrison
@Harrison與我的heroku憑據comand heroku登錄功能。然而,當我輸入與以前相同的憑證時,並不是我的命令。它只有當我輸入在netrc文件中找到的散列密碼時才起作用,除此之外,每當我想要執行git push時都必須執行此操作......錯誤消息在我更新的問題描述中題。 – Adam