如何从Android Studio发出拉取请求? [英] How to make pull request from android studio?

查看:272
本文介绍了如何从Android Studio发出拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将应用程序分叉到android studio,并且在尝试发出请求请求时:

I forked application to android studio and when I try to make a pull request:

我得到了:

Can't Create Pull Request
            Push failed:
            failed to push some refs to 'https://github.com/projectname.git'

正确的方法是什么?

注意:

我可以提交和更新我的项目,但不能向其他项目发出拉动请求.

I can commit and update my projects but I can't make pull request to other projects.

推荐答案

这显然是身份验证问题.未知数太多,所以我怀疑有人能给您确切的答案.以下是进行调查以解决问题的步骤:

This is obviously an authentication problem. There are WAY too many unknowns, so I doubt anyone can give you a definitive answer. Here are the steps to investigate in order to solve it:

  • 您的GitHub帐户是否已通过Android Studio安装进行了身份验证?检查您的Android Studio设置.

  • 要进行身份验证,您需要通过Github帐户设置生成访问令牌,并使用该令牌,如上图所示.生成新令牌时,通常我建议您谨慎使用授予的令牌.为了调试您的问题,请生成一个具有全部访问权限的新问题,并在解决问题后立即将其删除.
  • In order to authenticate you need to generate an Access Token through your Github account settings and use that token as seen in the picture above. When generating a new token, normally I would advise you to be careful with the permissions you grant to it. For debugging your issue, generate a new one with full access to everything and delete it as soon as you resolve your issue.

  • 最后,如果以上两个步骤均正确完成,但您仍无法打开PR.确保您尝试打开PR的存储库允许第三方用户执行此类操作.

注意:您始终可以在本地存储库中提交代码.它位于您的本地环境(也就是您的计算机)中,并且您拥有完全权限来使用它进行任何操作.这并不意味着您在本地所做的更改将反映在远程存储库中(也就是在Github服务器上托管的存储库).

NOTE: You can always commit code in your local repository. That lives in your local environment (a.k.a. your computer) and you have full permission to do whatever you please with it. That doesn't mean the changes you do locally, will be reflected in the remote repository (a.k.a. the one hosted at Github servers).

这篇关于如何从Android Studio发出拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆