Git Integration

A guide to the jupyterlab-git integration for Jupyter notebooks.

Git Extension

The Git extension for Jupyter Lab allows users to perform Git actions using the notebook web UI. The extension is available through the left sidebar.

Make sure you are in the desired file system directory before switching to the Git extension panel.

Initialisation

Before using the Git extension, you must tell Git who you are. Execute the following commands in the notebook terminal.

git config --global user.name "My Name"
git config --global user.email "myemail@example.com"

Authorisation

The Git extension can handle the authorisation for http(s) repositories by requesting your username and password, when required. Any entered credentials will be cached for one hour.

If the remote repository is authenticated by SSH, you will need to set up your SSH credentials for the notebook (hint: `ssh-keygen` will guide you through creating local SSH credentials, which you can then add to your remote Git provider).