It may be useful to use the Jupyter git plugin to push code.
https://github.com/jupyterlab/jupyterlab-git