git - 使用 Git 进行 Azure 站点部署,无需凭据

标签 git azure deployment git-push

我有一个 Windows Azure 站点。目前我使用 GIT 源代码控制工具将代码部署到 Azure。它每次都会询问我的凭据。有没有办法不用输入密码就可以推送代码?我们可以在 Github、Git Stash 中添加 SSH key 并直接访问 Git 存储库。我需要这样的东西。我们可以在 Azure 网站上进行吗?谁能告诉我吗?

git push azure-site master

https://[email protected]:443”的密码':

最佳答案

答案是 .gitcredentials 或 netrc 文件。该文件可以在用户主路径中创建。它存储 https 凭据。从下次开始就不会提示输入密码了。 Is there a way to skip password typing when using https:// on GitHub?

关于git - 使用 Git 进行 Azure 站点部署,无需凭据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26863502/

相关文章:

git - 如何从 git repo 中删除一个文件夹?

Azure 容器实例未连接 kafka 集群

azure 。应用见解。 AI日志中莫名其妙的错误信息

deployment - 如何以编程方式将BIDS工件部署到远程SQL Server实例?

git - Git 2.x 中的 `git add .` 和 `git add -A` 是否相同?

git - 从 git log 中通过扩展名排除特定文件

sharepoint - 如何让 teamcity 在每次成功构建时运行 .bat 文件?

azure - 将自定义参数添加到 Azure 数据工厂部署

git - db.sqlite3 在 git 中不能被忽略

azure - 在 CosmosDb 中使用/id 作为分区键的含义