update module3.ipynb

This commit is contained in:
Yavuz Sava 2025-03-07 14:53:25 +03:00
parent fa572d909b
commit 31bc91aa27

View File

@ -241,7 +241,157 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Fetching New Changes"
"# Fetching New Changes\n",
"\n",
"This reading contains the code used in the instructional videos from [**Fetching New Changes**<svg aria-labelledby=\"cds-react-aria3604314262-:r4dc:-title\" fill=\"none\" focusable=\"false\" height=\"16\" role=\"img\" viewBox=\"0 0 20 20\" width=\"16\" class=\"css-8blerm\" id=\"cds-react-aria3604314262-:r4dc:\"><title id=\"cds-react-aria3604314262-:r4dc:-title\">Opens in a new tab</title></svg>](https://www.coursera.org/learn/introduction-git-github/lecture/vbWpa/fetching-new-changes)\n",
"\n",
"## Introduction\n",
"\n",
"This follow-along reading is organized to match the content in the video that follows. It contains the same code shown in the next video. These code blocks will provide you with the opportunity to see how the code is written and can be used as a reference as you work through the course.\n",
"\n",
"You can follow along in the reading as the instructor discusses the code or review the code after watching the video.\n",
"\n",
"```bash\n",
"cd health\\-checks/\n",
"\n",
"git remote show origin\n",
"```\n",
"\n",
"**Code output:** \n",
"\n",
"\\* remote origin\n",
"\n",
"  Fetch URL: https://github.com/redquinoa/health-checks.git\n",
"\n",
"  Push  URL: https://github.com/redquinoa/health-checks.git\n",
"\n",
"  HEAD branch: master\n",
"\n",
"  Remote branch:\n",
"\n",
"    master tracked\n",
"\n",
"  Local branch configured for 'git pull':\n",
"\n",
"    master merges with remote master\n",
"\n",
"  Local ref configured for 'git push':\n",
"\n",
"    master pushes to master (local out of date)\n",
"\n",
"```bash\n",
"git fetch\n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"remote: Enumerating objects: 5, done.\n",
"\n",
"remote: Counting objects: 100% (5/5), done.\n",
"\n",
"remote: Compressing objects: 100% (4/4), done.\n",
"\n",
"remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0\n",
"\n",
"Unpacking objects: 100% (4/4), done.\n",
"\n",
"From https://github.com/redquinoa/health-checks\n",
"\n",
"   807cb50..b62dc2e  master     -> origin/master\n",
"\n",
"```bash\n",
"git log origin/master\n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"commit b62dc2eacfa820cd9a762adab9213305d1c8d344 (origin/master, origin/HEAD)\n",
"\n",
"Author: Blue Kale <bluekale@example.com>\n",
"\n",
"Date:   Mon Jan 6 14:32:45 2020 -0800\n",
"\n",
"    Add initial files for the checks\n",
"\n",
"commit 807cb5037ccac5512ba583e782c35f4e114f8599 (HEAD -> master)\n",
"\n",
"Author: My name <me@example.com>\n",
"\n",
"Date:   Mon Jan 6 14:09:41 2020 -800\n",
"\n",
"    Add one more line to README.md\n",
"\n",
"commit 3d9f86c50b8651d41adabdaebd04530f4694efb5\n",
"\n",
"Author: Red Quinoa <55592533+redquinoa@users.noreply.github.com>\n",
"\n",
"Date:   Sat Sep 21 14:04:15 2019 -0700\n",
"\n",
"    Initial commit\n",
"\n",
"```bash\n",
"git status\n",
"```\n",
"\n",
"**Code output:** \n",
"\n",
"On branch master\n",
"\n",
"Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.\n",
"\n",
"  (use \"git pull\" to update your local branch)\n",
"\n",
"nothing to commit, working tree clean\n",
"\n",
"```bash\n",
"git merge origin/master\n",
"```\n",
"\n",
"**Code output:** \n",
"\n",
"Updating 807cb50..b62dc2e\n",
"\n",
"Fast-forward\n",
"\n",
" all\\_checks.py | 18 ++++++++++++++++++\n",
"\n",
" disk\\_usage.py | 24 ++++++++++++++++++++++++\n",
"\n",
" 2 files changed, 42 insertions(+)\n",
"\n",
" create mode 100755 all\\_checks.py\n",
"\n",
" create mode 100644 disk\\_usage.py\n",
"\n",
"```bash\n",
"git log\n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"commit 1e0a1dfccf01183bfca7e30fb25f115889f95022 (HEAD -> master, origin/master, origin/HEAD)\n",
"\n",
"commit b62dc2eacfa820cd9a762adab9213305d1c8d344 (HEAD -> master, origin/master, origin/HEAD)\n",
"\n",
"Author: Blue Kale <bluekale@example.com>\n",
"\n",
"Date:   Mon Jan 6 14:32:45 2020 -0800\n",
"\n",
"    Add initial files for the checks\n",
"\n",
"commit 807cb5037ccac5512ba583e782c35f4e114f8599 (HEAD -> master)\n",
"\n",
"Author: My name <me@example.com>\n",
"\n",
"Date:   Mon Jan 6 14:09:41 2020 -800\n",
"\n",
"    Add one more line to README.md\n",
"\n",
"commit 3d9f86c50b8651d41adabdaebd04530f4694efb5\n",
"\n",
"Author: Red Quinoa <55592533+redquinoa@users.noreply.github.com>\n",
"\n",
"Date:   Sat Sep 21 14:04:15 2019 -0700"
]
},
{