错误:无法从“/home/.cache/Google/AndroidStudio2021.1/tmp/intellij-git-askpass-local.sh”读取askpass响应在 ubuntu android studio 中
我正在尝试将我的代码推送到我的位存储桶存储库,但从位存储桶更新后的最后几天开始,我必须使用令牌来推送代码。但我不知道在哪里添加令牌。 谁能告诉我android studio的整个流程。我还浏览了此文档 .但不知道如何在 android studio 中使用它。
I am trying to push my code to my bit bucket repository but from last few days after update from bit bucket, I have to use token to push code. But I don't know where to add token.
Could anyone let me know the entire process for android studio. I have also gone through with This documentation
.But didn't get any idea about how to use it in android studio.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
对于我来说,我使用 android studio,我遇到了同样的问题;我无法向我的 github 存储库发出推送命令,那是在我的 IDE 版本更新为 Chipmunk 之后。
对我有用的解决方案:
启用凭据帮助程序 - 在 IDE 中选择文件 ->设置->版本控制-> git->标记使用凭据助手的复选框。然后应用更改。
使缓存无效并清除 - 在 IDE 中选择文件 ->使缓存无效。
As for me I use android studio, I came across the same issue; where I was unable to make push command to my github repo, that is after an update of my IDE version to chipmunk.
Solution that worked for me:
Enable the Credential helper - In the IDE select File -> Settings -> Version Control -> Git -> Mark the check box for use Credential helper. Then apply changes.
Invalidate and clear caches - In the IDE select File -> Invalidate caches.
然后从终端 git pull
然后会询问你的用户名和密码
and then git pull from terminal
then will ask your username and password
如果您在 Windows 中使用 android studio,您可以尝试以下流程:
它对我有用。
You may try with below flow, If you are using android studio in Windows :
It's working for me.
经过几个小时的研究,我找到了最好的解决办法,我不知道这是使用它的正确方法。但它工作正常。参考这个答案...参考这个< /a>
after several hours of research I found the best soultion for this I dont know this is the right way to use it or not. But its working fine.refer this answer...Refer this
只需更新您的 git 版本:
Simply update your git version :
我也遇到这个问题,我使用的是mac,我通过
希望有帮助,谢谢
I also encounter this problem, I am using mac and I solved it by
Hope this help, Thanks
我刚刚遇到了同样的错误。我再次下载该项目并再次尝试,它给出了错误。然后我更新了 GitHub 帐户中的令牌,然后打开和关闭 Android Studio,它对我有用。
I just had the same error. I downloaded the project again and tried again, it gave an error. Then I updated the token in my GitHub account then I turned Android Studio on and off and it worked for me.
对于 Bitbucket
在 bitbucket 控制台上创建您的“应用程序密码”。在您的头像下->个人设置->访问管理->应用密码。
完成后,复制应用密码并从终端推送,输入 -
For Github
创建一个新的 GitHub 令牌,
完成后复制令牌并从终端推送您的项目:
git push
您会被要求输入您的用户名
然后您会被要求输入密码
提交将在此之后推送
For Bitbucket
create your "app password" on bitbucket console. Under your Avatar ->Personal Settings ->Access Management ->App Password.
Once done, copy app password and push from the terminal enter -
For Github
create a new GitHub token,
Once done copy token and push your project from the terminal :
git push
you'd be asked to input your username
Then you'd be asked to enter your password
commit will be pushed after this
PyCharm 更新的有趣案例:
操作系统:Ubuntu 18.04
就我而言,PyCharm 已更新,现有的开放项目正在使用旧版本。
解决方案:只需关闭现有的旧版 PyCharm 并在新版本中打开项目
Interesting case of PyCharm update:
OS: Ubuntu 18.04
In my case the PyCharm got updated and the existing open project was using older version.
Solution : Just closed the existing older PyCharm and open the project in newer version
如果您使用 ssh 密钥访问,则无需插入凭据,只需清除 IDE 缓存即可。
转到“文件”,然后单击“使缓存无效”,并仅选中“清除 VCS 日志缓存和索引”复选框。
If you're accessing with ssh key you don't need to insert credentials, you only need to clear the IDE cache.
Go to "File" and then click on "Invalidate caches" and mark only the check "Clear VCS Log caches and indexes".