Skip to content

Commit

Permalink
Fix #47.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmgaudecker committed Nov 21, 2024
1 parent b7f1729 commit 910df96
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions src/epp_topics/git/collaboration/objectives_materials.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,57 +177,6 @@
" },\n",
" ],\n",
" },\n",
"]\n",
"\n",
"display_quiz(content)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Cards"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"remove-input"
]
},
"outputs": [],
"source": [
"content = [\n",
" {\n",
" \"name\": \"Intro\",\n",
" \"front\": \"What are the typical steps for \\\n",
" creating a new feature branch?\",\n",
" \"back\": \"Let's go through them step by step \\\n",
" (click on next in the bottom right).\",\n",
" },\n",
" {\n",
" \"name\": \"git checkout main\",\n",
" \"front\": \"git checkout main\",\n",
" \"back\": \"This command switches to the main branch. \\\n",
" We need to switch to the main branch and update it \\\n",
" before creating a new branch, to make sure that \\\n",
" we start working from the latest version \\\n",
" of the code.\",\n",
" },\n",
" {\n",
" \"name\": \"git pull\",\n",
" \"front\": \"git pull\",\n",
" \"back\": \"This command pulls the latest changes \\\n",
" from the remote repository.\",\n",
" },\n",
" {\n",
" \"name\": \"git checkout -b feature_branch\",\n",
" \"front\": \"git checkout -b feature_branch\",\n",
" \"back\": \"This command creates a new branch called \\\n",
" feature_branch and switches to it.\",\n",
" },\n",
" {\n",
" \"question\": \"`git push` ...\",\n",
" \"type\": \"multiple_choice\",\n",
Expand Down Expand Up @@ -306,6 +255,57 @@
" },\n",
"]\n",
"\n",
"display_quiz(content)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Cards"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"remove-input"
]
},
"outputs": [],
"source": [
"content = [\n",
" {\n",
" \"name\": \"Intro\",\n",
" \"front\": \"What are the typical steps for \\\n",
" creating a new feature branch?\",\n",
" \"back\": \"Let's go through them step by step \\\n",
" (click on next in the bottom right).\",\n",
" },\n",
" {\n",
" \"name\": \"git checkout main\",\n",
" \"front\": \"git checkout main\",\n",
" \"back\": \"This command switches to the main branch. \\\n",
" We need to switch to the main branch and update it \\\n",
" before creating a new branch, to make sure that \\\n",
" we start working from the latest version \\\n",
" of the code.\",\n",
" },\n",
" {\n",
" \"name\": \"git pull\",\n",
" \"front\": \"git pull\",\n",
" \"back\": \"This command pulls the latest changes \\\n",
" from the remote repository.\",\n",
" },\n",
" {\n",
" \"name\": \"git checkout -b feature_branch\",\n",
" \"front\": \"git checkout -b feature_branch\",\n",
" \"back\": \"This command creates a new branch called \\\n",
" feature_branch and switches to it.\",\n",
" },\n",
"]\n",
"\n",
"\n",
"from jupytercards import display_flashcards\n",
"\n",
Expand Down

0 comments on commit 910df96

Please sign in to comment.