diff --git a/book/_toc.yml b/book/_toc.yml index d037eff..4e6906c 100644 --- a/book/_toc.yml +++ b/book/_toc.yml @@ -10,6 +10,7 @@ parts: chapters: - file: workflows/git-basic sections: + - file: workflows/git-clone - file: workflows/git-branch - file: workflows/git-stage-commit-push - file: workflows/gitlab diff --git a/book/images/gitlab-clone.png b/book/images/gitlab-clone.png new file mode 100644 index 0000000..46f8c3e Binary files /dev/null and b/book/images/gitlab-clone.png differ diff --git a/book/images/vscode-welcome.png b/book/images/vscode-welcome.png new file mode 100644 index 0000000..02a7401 Binary files /dev/null and b/book/images/vscode-welcome.png differ diff --git a/book/workflows/git-clone.md b/book/workflows/git-clone.md new file mode 100644 index 0000000..0e5b9f2 --- /dev/null +++ b/book/workflows/git-clone.md @@ -0,0 +1,17 @@ +(git-clone)= +# Cloning a repository + +Before we can start working on our Jupyter Book, we of course need to have the repository on our own system. This is done by *cloning* the repository, and here's how you do it with VS Code: + +1. On GitLab, go to the repository of your book. Click on the blue button that says "Clone" ({numref}`gitlab-clone`), and copy the link under "Clone with SSH". + +```{figure} ../images/gitlab-clone.png +:name: gitlab-clone + +The cloning menu. +``` + +2. Open a new VS Code window. You should be greeted with a welcome page (see {numref}) + +```{figure} ../images/vscode-welcome.png +``` \ No newline at end of file