Github for Mac: Pull Request Button is missing

半腔热情 提交于 2019-12-07 02:36:44

问题


Saturday I installed Github Desktop on my Mac and tried the Github Workflow. Created a branch, committed changes and did a Pull Request. Everything worked.

Today I installed Github for Mac at work - and the Pull Request Button is no where to be found. I'm back home now on my private Mac and the button is missing here as well now.

As you can see on the last screenshot, the branch is up on github.com and ready for a PR. Also the dots in Github for Desktops Timeline (top right) are small, which means the commits are pushed. And there are changes to the dev branch (second screenshots).

Am I doing something wrong?

Update: maybe my branch isn't eligible for a PR? Because the menu item is also greyed out:

I have two branches, they have committed (and pushed) differences... hm.


回答1:


Another way of doing this (it worked for me) is to go to:

"Preferences" > "Sign out" > "Sign in" (again)

That way you'll reset your Github desktop (don't worry. You won't lose anything :) )




回答2:


I finally got it. As you can see in the screenshots my repository is marked as "other". That's because it was already on my machine and I've not cloned it in Github for Desktop. I just added it.

I cloned that repository as follows

https://githubusername:githubpassword@github.com/organization/repo.git

That URL as remote.origin.url probably isn't handled by Github for Desktop so the Repo is marked as "other".

Weird. I recloned my repositories and now everything is working fine.



来源:https://stackoverflow.com/questions/33615099/github-for-mac-pull-request-button-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!