Skip to content

Commit feb26f3

Browse files
robnafcollonval
andauthored
Readme: Authentication to remote repo (#1000)
* Readme: Authentication to remote repo * Apply suggestions from code review Yes, very good improvements, especially to make it less focused on github Co-authored-by: Frédéric Collonval <[email protected]> * Reorganize the README Co-authored-by: Frédéric Collonval <[email protected]>
1 parent 678095d commit feb26f3

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ To see the extension in action, open the example notebook included in the Binder
1919
## Usage
2020

2121
- Open the Git extension from the _Git_ tab on the left panel
22+
- [Set up authentication](#authentication-to-remote-repository-hosts)
2223

2324
## Install
2425

@@ -60,6 +61,23 @@ jupyter labextension uninstall @jupyterlab/git
6061

6162
## Settings
6263

64+
### Authentication to remote repository hosts
65+
66+
This extensions does not handle credentials or authentication details. In order to connect to a remote host, it is recommended to use SSH.
67+
68+
If you are seeing errors similar to `[E yyyy-mm-dd hh:mm:ss ServerApp] 500 POST /git/<clone|push|pull|status>` on the console which is running the JupyterLab server, you probably need to set up a credentials store for your local Git repository. One of the possibility is to use SSH.
69+
70+
Here are the steps to follow (skip any that is already accomplished for your project):
71+
72+
1. [Create a SSH key](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
73+
2. Register the public part of it to your Git server:
74+
* [GitHub](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)
75+
* [GitLab](https://docs.gitlab.com/ee/ssh/index.html#add-an-ssh-key-to-your-gitlab-account)
76+
3. Optionally, if you have more than one key managed by your ssh agent: [Create a config file for the ssh-agent](https://stackoverflow.com/a/21938804)
77+
4. Tell your local Git repository to [connect to remote via ssh](https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories#switching-remote-urls-from-https-to-ssh)
78+
79+
You should now be able to pull and push committed changes to and from your remote repository using the respective buttons on the top of the extension's panel.
80+
6381
### UI Settings
6482

6583
Once installed, extension behavior can be modified via the following settings which can be set in JupyterLab's advanced settings editor:
@@ -140,10 +158,10 @@ If they do not match or one is missing, please [reinstall the package](README.md
140158
```bash
141159
jupyter labextension install @jupyterlab/git
142160
```
143-
161+
144162
If you see `@jupyterlab/git` under `Uninstalled core extensions: `, your installation may have been corrupted. You can run `jupyter lab clean --all` and
145163
reinstall all your extensions.
146-
164+
147165
## Contributing
148166
149167
If you would like to contribute to the project, please read our [contributor documentation](https://github.com/jupyterlab/jupyterlab/blob/master/CONTRIBUTING.md).

0 commit comments

Comments
 (0)