android - 推送后在 Github 上保护 API key

标签 android git github youtube-data-api android-youtube-api

我在 Github 上不知不觉地上传了我的应用程序的 api key ,因此我从 console.developer.google.com 中删除了 api key

,能保证那个api key不会出问题吗?

此外,我需要有关如何从 Github 上项目的所有提交中删除它的帮助。

欢迎任何建议。

最佳答案

Did it guarantee me that there will not be any issue with that api key?

是的,考虑到 key 已从您的帐户中删除。按照评论进行测试。

I want help in how to remove that from all the commits in the project on Github.

遵循 GitHub 指南“Removing sensitive data from a repository”。
BFG repo cleaner也可以提供帮助。

关于android - 推送后在 Github 上保护 API key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52979149/

相关文章:

git - git rebase 后清理分支

ios - merge 两个 git 仓库(不小心从 github 下载的 .zip,需要重新 merge 进去)

Android 支持库不兼容

android - 将布局约束为屏幕高度的 50%?

从 Play 商店安装时,Android cordova 应用程序崩溃

java - 当我尝试从 git 更新项目时出现此错误 : Couldn't save uncommitted changes

ruby-on-rails-3 - 无法在circleci中运行 Elasticsearch 以使我的rspec能够通过Elasticsearch?

github - 从源代码中提取 # TODO 标签并将它们转换为 Bitbucket/Github 上的问题

github - github.event 的简单回显在 Github Actions 中失败

java - Android java.lang.SecurityException 发生