I haven't got what to enter in fields Username for and Password for after the command git push heroku master:C:\code2015>git push heroku masterUsername for 'https://git.heroku.com': nemoPassword for 'https://nemo@git.heroku.com':remote: ! WARNING:remote: ! Do not authenticate with username and password using git.remote: ! Run `heroku login` to update your credentials, then retrythe git command.remote: ! See documentation for details:https://devcenter.heroku.com/articles/http-git#authenticationfatal: Authentication failed for 'https://git.heroku.com/django-blog.git/'我已阅读文档,但仍不了解.I have read documents, but do not still understand.C:\code2015>heroku loginEnter your Heroku credentials.Email: nemo@yandex.ruPassword (typing will be hidden):Authentication successful.推荐答案对于我来说,当我通过cygwin安装git时,我遇到了身份危机",而我使用了Heroku的工具带:heroku在DOS命令控制台(CMD)中成功登录).For my situation, I have "identity crises", as I installed git through cygwin, while I used Heroku's toolbelt: heroku login successfully in DOS Command console (CMD).对于CMD,%HOME%为c:\ Users \ my-idFor CMD, the %HOME% is c:\Users\my-id对于cygwin,$ HOME是不同的for cygwin, $HOME is different我发现_netrc放在$ HOME和%HOME%中I found that _netrc was placed in both $HOME and %HOME%我不得不 copy $HOME/_netrc $HOME/.netrc然后git push heroku master成功. 这篇关于如何在Heroku上部署网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!