FAIRiCUBE / uc1-urban-climate

FAIRiCUBE Urban adaptation to climate change Use Case
MIT License
4 stars 0 forks source link

JupyterLab git push interface throws error #4

Closed mari-s4e closed 7 months ago

mari-s4e commented 8 months ago

Hello,

since a while, every time I try to use the JupyterLab interface to push changes to the remote repository, I get the following error image

From the command line, git push does work without errors.

Also @MarvinMosel is experiencing the same problem.

eox-cs1 commented 8 months ago

we just checked - we have a quite recent version of https://github.com/jupyterlab/jupyterlab-git installed

13:19 $ jupyter labextension list
        @jupyterlab/git v0.43.0 enabled OK (python, jupyterlab-git)

also also later versions (like 0.44 resp. 0.50) won't change anything in behavior The main "problem" is not the generic git extension but the fact that github as specific git provider disabled https and just allows push via ssh (note: the extension only allows git clone via https so the subsequent push is also using https!) so to work with git against github repos you need to

  1. create ssh key (without passphrase) and upload to github as well as your JupyterLab workspace
  2. do a git clone via command line
  3. now you can use the extension to browse through branches and commit/push

this workflow has been verified by @mallingerb above

mari-s4e commented 7 months ago

With the ssh key it now works, thanks for looking into this.