【发布时间】:2022-07-12 13:48:16
【问题描述】:
我正在尝试将我的代码推送到我的位桶存储库,但是从位桶更新后的最后几天,我必须使用令牌来推送代码。但我不知道在哪里添加令牌。 谁能告诉我android studio的整个过程。我也经历过This 文档 .但是不知道如何在android studio中使用它。
【问题讨论】:
标签: android android-studio bitbucket token push
我正在尝试将我的代码推送到我的位桶存储库,但是从位桶更新后的最后几天,我必须使用令牌来推送代码。但我不知道在哪里添加令牌。 谁能告诉我android studio的整个过程。我也经历过This 文档 .但是不知道如何在android studio中使用它。
【问题讨论】:
标签: android android-studio bitbucket token push
经过几个小时的研究,我找到了最好的解决方案,我不知道这是否是正确的使用方法。但它工作正常。参考这个答案...Refer this
【讨论】:
至于我使用 android studio,我遇到了同样的问题;在我的 IDE 版本更新为花栗鼠之后,我无法向我的 github 存储库发出推送命令。
对我有用的解决方案:
启用凭据助手 - 在 IDE 中选择文件 -> 设置 -> 版本控制 -> Git -> 选中复选框以使用凭据助手。然后应用更改。
使缓存无效并清除 - 在 IDE 中选择文件 -> 使缓存无效。
【讨论】:
git config --global --unset credential.helper
然后从终端 git pull
git pull
然后会询问你的用户名和密码
【讨论】:
只需更新你的 git 版本:
git update-git-for-windows
【讨论】:
我刚刚遇到了同样的错误。我再次下载了项目并再次尝试,它给出了错误。然后我更新了我的 GitHub 帐户中的令牌,然后我打开和关闭了 Android Studio,它对我有用。
【讨论】:
我也遇到这个问题,我用的是mac,我解决了
希望对您有所帮助,谢谢
【讨论】:
如果您在 Windows 中使用 android studio,您可以尝试以下流程:
File -> Settings -> Version Control -> Git / Check "User credential Helper"
它对我有用。
【讨论】: