update module4.ipynb

This commit is contained in:
Yavuz Sava 2025-03-08 12:25:34 +03:00
parent fa1f6cd6b1
commit 7219e7202d

View File

@ -478,7 +478,93 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# How to Use Code Reviews in GitHub"
"# How to Use Code Reviews in GitHub\n",
"\n",
"Review: How to use code reviews | Coursera\n",
"\n",
"This reading contains the code used in the instructional videos from [**How to use Code Reviews in GitHub**](https://www.coursera.org/learn/introduction-git-github/lecture/QH52K/how-to-use-code-reviews-in-github)\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",
"atom README.md\n",
"\n",
"Rearrange\n",
"\n",
"\\=========\n",
"\n",
"This module is used for rearranging names.\n",
"\n",
"Turns \"LastName, FirstName\" into \"FirstName LastName\".\n",
"\n",
"## Examples\n",
"\n",
" \\* Calling \\`rearrange\\_name(\"Turing, Alan\")\\` will return \\`\"Alan Turing\"\\`\n",
"\n",
" \\* Calling \\`rearrange\\_name(\"Hopper, Grace M.\")\\` will return \\`\"Grace M. Hopper\"\\`\n",
"\n",
" \\* Calling \\`rearrange\\_name(\"Voltaire\")\\` will return \\`\"Voltaire\"\\`\n",
"```\n",
"\n",
"```bash\n",
"git commit \\-a \\--amend\n",
"```\n",
"\n",
"**Code output:** \n",
"\n",
"\\[add-readme 55e32ed\\] Add a simple README.md file including an example use case\n",
"\n",
" Date: Tue Jan 7 09:47:17 2020 -0800\n",
"\n",
" 1 file changed, 11 insertions(+)\n",
"\n",
" Create mode 100644 README.md\n",
"\n",
"```bash\n",
"git status\n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"On branch add-readme\n",
"\n",
"Your branch and origin/add-readme have diverged,\n",
"\n",
"And have 1 and 1 different commits, respectively\n",
"\n",
"  (use “git pull” to merge the remote branch into yours)\n",
"\n",
"Nothing to commit, working tree clean\n",
"\n",
"```bash\n",
"git push \\-f\n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"Username for 'https://github.com': redquinoa\n",
"\n",
"Password for 'https://redquinoa@github.com': redquinoa\n",
"\n",
"numerating objects: 4, done.\n",
"\n",
"Counting objects: 100% (4/4), done.\n",
"\n",
"Delta compression using up to 4 threads\n",
"\n",
"Compressing objects: 100% (3/3), done.\n",
"\n",
"Writing objects: 100% (3/3), 553 bytes | 553.00 KiB/s, done.\n",
"\n",
"Total 3 (delta 0), reused 0 (delta 0)\n",
"\n",
"To https://github.com/redquinoa/rearrange.git\n",
"\n",
" + ae779e4...55e32ed master -> master (forced update)"
]
},
{