Skip to content

Commit 03ae7b6

Browse files
authored
Bump version and update README (#1120)
1 parent 7273df3 commit 03ae7b6

File tree

2 files changed

+36
-10
lines changed

2 files changed

+36
-10
lines changed

README.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,24 @@ jupyter labextension uninstall @jupyterlab/git
6262

6363
### Authentication to remote repository hosts
6464

65-
This extensions does not handle credentials or authentication details. In order to connect to a remote host, it is recommended to use SSH.
65+
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.
6666

67-
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.
67+
This extension tries to handle credentials for HTTP(S) connections (if you don't have set up a credential manager). But not for other SSH connections.
6868

69-
Here are the steps to follow (skip any that is already accomplished for your project):
69+
> For Windows users, it is recommended to install [git for windows](https://gitforwindows.org/). It will automatically set up a credential manager.
70+
> In order to connect to a remote host, it is recommended to use SSH.
71+
72+
#### HTTP(S) protocol
73+
74+
The extension can cache temporarily (by default for an hour) credentials. To use the caching, you will need to
75+
check the option _Save my login temporarily_ in the dialog asking your credentials.
76+
77+
> You can set a longer cache timeout; see [Server Settings](#server-settings).
78+
79+
> This is a new feature since v0.37.0
80+
#### SSH protocol
81+
82+
Here are the steps to follow to set up SSH authentication (skip any that is already accomplished for your project):
7083

7184
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)
7285
2. Register the public part of it to your Git server:
@@ -94,25 +107,35 @@ Once installed, extension behavior can be modified via the following settings wh
94107

95108
### Server Settings
96109

97-
- Post _git init_ actions: It is possible to provide a list of commands to be executed in a folder after it is initialized as Git repository.
98110

99-
In `~/.jupyter/jupyter_notebook_config.py`:
111+
- `JupyterLabGit.actions.post_init`: Set post _git init_ actions.
112+
It is possible to provide a list of commands to be executed in a folder after it is initialized as Git repository.
113+
- `JupyterLabGit.credential_helper`: Git credential helper to set to cache the credentials.
114+
The default value is `cache --timeout=3600` to cache the credentials for an hour. If you want to cache them for 10 hours, set `cache --timeout=36000`.
115+
116+
<details>
117+
<summary><b>How to set server settings?</b></summary>
118+
119+
In `$HOME/.jupyter/jupyter_notebook_config.py` (on Windows `%USERPROFILE%/.jupyter/jupyter_notebook_config.py`):
100120

101121
```python
102122
c.JupyterLabGit.actions = {"post_init": ["touch dummy_init.dat"]}
123+
c.JupyterLabGit.credential_helper = 'cache --timeout=3600'
103124
```
104125

105-
Or equivalently in `jupyter_notebook_config.json`:
126+
Or equivalently in `$HOME/.jupyter/jupyter_notebook_config.json` (on Windows `%USERPROFILE%/.jupyter/jupyter_notebook_config.json`):
106127

107128
```json
108129
{
109130
"JupyterLabGit": {
110131
"actions": {
111132
"post_init": ["touch dummy_init.dat"]
112-
}
133+
},
134+
"credential_helper": "cache --timeout=3600"
113135
}
114136
}
115137
```
138+
</details>
116139

117140
## Troubleshoot
118141

@@ -125,7 +148,7 @@ jupyter labextension list
125148

126149
If they do not match or one is missing, please [reinstall the package](README.md#Install).
127150

128-
- **Issue**: the Git panel does not recognize that you are in a Git repository.
151+
<details><summary>the Git panel does not recognize that you are in a Git repository.</summary>
129152

130153
Possible fixes:
131154

@@ -141,8 +164,10 @@ If they do not match or one is missing, please [reinstall the package](README.md
141164
```
142165

143166
- If you are using JupyterHub or some other technologies requiring an initialization script which includes the jupyterlab-git extension, be sure to install both the frontend and the server extension **before** launching JupyterLab.
167+
</details>
144168

145-
- **Issue**: the Git panel is not visible.
169+
<details>
170+
<summary>the Git panel is not visible.</summary>
146171

147172
Possible fixes:
148173

@@ -160,6 +185,7 @@ If they do not match or one is missing, please [reinstall the package](README.md
160185
161186
If you see `@jupyterlab/git` under `Uninstalled core extensions: `, your installation may have been corrupted. You can run `jupyter lab clean --all` and
162187
reinstall all your extensions.
188+
</details>
163189
164190
## Contributing
165191

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupyterlab/git",
3-
"version": "0.36.0",
3+
"version": "0.37.0",
44
"description": "A JupyterLab extension for version control using git",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)