ghp-import icon indicating copy to clipboard operation
ghp-import copied to clipboard

Authentication to GitHub fails execting ghp-import

Open stuchalk opened this issue 2 years ago • 1 comments

I have a project in PyCharm and via the command line run the recommended command for adding gh pages for jupyter-book (https://jupyterbook.org/en/stable/publish/gh-pages.html option 2) using ghp-import. When I do this it prompts for username and password and then quits because the repo I want to install it on is not on my personal account, but on an organizational account.

Screen Shot 2022-07-26 at 7 16 52 PM

As you can see it tries 'https://github.com/stuchalk/WFChemCookbook.git/' but the repo is actually at ''https://github.com/iupac/WFChemCookbook.git/'.

How do I get ghp-import to allow me to authenticate to an organization?

stuchalk avatar Jul 26 '22 23:07 stuchalk

ghp_import isn’t doing anything interesting with authentication so I’d assume that this is a problem linked to the configuration of the underlying remote. From the screenshot it looks like you’re using https to do the push with an account password which is a feature that was removed from GitHub recently (see changelog). Try using a personal access token or SSH key instead of the password as described here.

c-w avatar Jul 27 '22 05:07 c-w

@stuchalk Closing this as I haven't heard back in a while. Feel free to re-open if this is still an issue for you :raised_hands:

c-w avatar Jul 02 '23 17:07 c-w