I am using Jupyter notebook and I am trying to clone a git repo on my notebook. However, when I write the following line of code:
!git clone https://github.com/qd-cae/qd-cae-python.git
I obtain the following error: 'git' is not recognized as an internal or external command, operable program or batch file.
I am not sure how git is supported on Jupyter notebook.
Thank you already.
Asked
Active
Viewed 16 times
-2
torek
- 389,216
- 48
- 524
- 664
sanaaMouzahir
- 1
- 3
-
1Does this answer your question? [What is the reason for "X is not recognized as an internal or external command, operable program or batch file"?](https://stackoverflow.com/questions/41454769/what-is-the-reason-for-x-is-not-recognized-as-an-internal-or-external-command) – Mofi Jun 04 '22 at 09:17
1 Answers
-1
You can not clone a repository writting code in a notebook. One way could be to use JupyterLab to clone git repositories. See an example here: https://cloud.google.com/vertex-ai/docs/workbench/user-managed/save-to-github
Jose Ramon Martinez Riveiro
- 54
- 2
- 3